jr-common-micro 1.1.54 → 1.1.55
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 +10 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +26 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.js +59 -1
- package/dist/proto/micro/v1/chat/services_connect.d.ts +20 -2
- package/dist/proto/micro/v1/chat/services_connect.js +18 -0
- package/dist/proto/micro/v1/chat/services_nest.d.ts +8 -2
- package/dist/proto/micro/v1/chat/services_nest.js +3 -0
- package/package.json +1 -1
- package/proto/micro/v1/chat/chat_messages.proto +13 -0
- package/proto/micro/v1/chat/services.proto +3 -0
|
@@ -135,6 +135,16 @@ export interface ChatMemberDto {
|
|
|
135
135
|
is_online: boolean;
|
|
136
136
|
reapplied: boolean;
|
|
137
137
|
}
|
|
138
|
+
export interface GroupPhotoSetRequest {
|
|
139
|
+
id: string;
|
|
140
|
+
data: Buffer;
|
|
141
|
+
mimetype: string;
|
|
142
|
+
}
|
|
143
|
+
export interface GroupPhotoResponse {
|
|
144
|
+
status: ResponseStatus | undefined;
|
|
145
|
+
data: Buffer;
|
|
146
|
+
mimetype: string;
|
|
147
|
+
}
|
|
138
148
|
export interface ChatUserAdminDto {
|
|
139
149
|
user_id: string;
|
|
140
150
|
username: string;
|
|
@@ -320,6 +320,32 @@ export declare class ChatMemberDto extends Message<ChatMemberDto> {
|
|
|
320
320
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMemberDto;
|
|
321
321
|
static equals(a: ChatMemberDto | PlainMessage<ChatMemberDto> | undefined, b: ChatMemberDto | PlainMessage<ChatMemberDto> | undefined): boolean;
|
|
322
322
|
}
|
|
323
|
+
export declare class GroupPhotoSetRequest extends Message<GroupPhotoSetRequest> {
|
|
324
|
+
id: string;
|
|
325
|
+
data: Uint8Array<ArrayBuffer>;
|
|
326
|
+
mimetype: string;
|
|
327
|
+
constructor(data?: PartialMessage<GroupPhotoSetRequest>);
|
|
328
|
+
static readonly runtime: typeof proto3;
|
|
329
|
+
static readonly typeName = "micro.v1.chat.GroupPhotoSetRequest";
|
|
330
|
+
static readonly fields: FieldList;
|
|
331
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GroupPhotoSetRequest;
|
|
332
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GroupPhotoSetRequest;
|
|
333
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GroupPhotoSetRequest;
|
|
334
|
+
static equals(a: GroupPhotoSetRequest | PlainMessage<GroupPhotoSetRequest> | undefined, b: GroupPhotoSetRequest | PlainMessage<GroupPhotoSetRequest> | undefined): boolean;
|
|
335
|
+
}
|
|
336
|
+
export declare class GroupPhotoResponse extends Message<GroupPhotoResponse> {
|
|
337
|
+
status?: ResponseStatus;
|
|
338
|
+
data: Uint8Array<ArrayBuffer>;
|
|
339
|
+
mimetype: string;
|
|
340
|
+
constructor(data?: PartialMessage<GroupPhotoResponse>);
|
|
341
|
+
static readonly runtime: typeof proto3;
|
|
342
|
+
static readonly typeName = "micro.v1.chat.GroupPhotoResponse";
|
|
343
|
+
static readonly fields: FieldList;
|
|
344
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GroupPhotoResponse;
|
|
345
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GroupPhotoResponse;
|
|
346
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GroupPhotoResponse;
|
|
347
|
+
static equals(a: GroupPhotoResponse | PlainMessage<GroupPhotoResponse> | undefined, b: GroupPhotoResponse | PlainMessage<GroupPhotoResponse> | undefined): boolean;
|
|
348
|
+
}
|
|
323
349
|
export declare class ChatUserAdminDto extends Message<ChatUserAdminDto> {
|
|
324
350
|
userId: string;
|
|
325
351
|
username: string;
|
|
@@ -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.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;
|
|
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.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 {
|
|
@@ -710,6 +710,64 @@ class ChatMemberDto extends protobuf_1.Message {
|
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
712
|
exports.ChatMemberDto = ChatMemberDto;
|
|
713
|
+
class GroupPhotoSetRequest extends protobuf_1.Message {
|
|
714
|
+
id = "";
|
|
715
|
+
data = new Uint8Array(0);
|
|
716
|
+
mimetype = "";
|
|
717
|
+
constructor(data) {
|
|
718
|
+
super();
|
|
719
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
720
|
+
}
|
|
721
|
+
static runtime = protobuf_1.proto3;
|
|
722
|
+
static typeName = "micro.v1.chat.GroupPhotoSetRequest";
|
|
723
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
724
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
725
|
+
{ no: 2, name: "data", kind: "scalar", T: 12 },
|
|
726
|
+
{ no: 3, name: "mimetype", kind: "scalar", T: 9 },
|
|
727
|
+
]);
|
|
728
|
+
static fromBinary(bytes, options) {
|
|
729
|
+
return new GroupPhotoSetRequest().fromBinary(bytes, options);
|
|
730
|
+
}
|
|
731
|
+
static fromJson(jsonValue, options) {
|
|
732
|
+
return new GroupPhotoSetRequest().fromJson(jsonValue, options);
|
|
733
|
+
}
|
|
734
|
+
static fromJsonString(jsonString, options) {
|
|
735
|
+
return new GroupPhotoSetRequest().fromJsonString(jsonString, options);
|
|
736
|
+
}
|
|
737
|
+
static equals(a, b) {
|
|
738
|
+
return protobuf_1.proto3.util.equals(GroupPhotoSetRequest, a, b);
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
exports.GroupPhotoSetRequest = GroupPhotoSetRequest;
|
|
742
|
+
class GroupPhotoResponse extends protobuf_1.Message {
|
|
743
|
+
status;
|
|
744
|
+
data = new Uint8Array(0);
|
|
745
|
+
mimetype = "";
|
|
746
|
+
constructor(data) {
|
|
747
|
+
super();
|
|
748
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
749
|
+
}
|
|
750
|
+
static runtime = protobuf_1.proto3;
|
|
751
|
+
static typeName = "micro.v1.chat.GroupPhotoResponse";
|
|
752
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
753
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
754
|
+
{ no: 2, name: "data", kind: "scalar", T: 12 },
|
|
755
|
+
{ no: 3, name: "mimetype", kind: "scalar", T: 9 },
|
|
756
|
+
]);
|
|
757
|
+
static fromBinary(bytes, options) {
|
|
758
|
+
return new GroupPhotoResponse().fromBinary(bytes, options);
|
|
759
|
+
}
|
|
760
|
+
static fromJson(jsonValue, options) {
|
|
761
|
+
return new GroupPhotoResponse().fromJson(jsonValue, options);
|
|
762
|
+
}
|
|
763
|
+
static fromJsonString(jsonString, options) {
|
|
764
|
+
return new GroupPhotoResponse().fromJsonString(jsonString, options);
|
|
765
|
+
}
|
|
766
|
+
static equals(a, b) {
|
|
767
|
+
return protobuf_1.proto3.util.equals(GroupPhotoResponse, a, b);
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
exports.GroupPhotoResponse = GroupPhotoResponse;
|
|
713
771
|
class ChatUserAdminDto extends protobuf_1.Message {
|
|
714
772
|
userId = "";
|
|
715
773
|
username = "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EmptyRequest, EmptyResponse, PaginateRequest } from "../general_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";
|
|
1
|
+
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateRequest } from "../general_pb.js";
|
|
2
|
+
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, 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";
|
|
@@ -46,6 +46,12 @@ export declare const PChatService: {
|
|
|
46
46
|
readonly O: typeof ChatMemberListResponse;
|
|
47
47
|
readonly kind: MethodKind.ServerStreaming;
|
|
48
48
|
};
|
|
49
|
+
readonly getGroupPhoto: {
|
|
50
|
+
readonly name: "GetGroupPhoto";
|
|
51
|
+
readonly I: typeof ByIdRequest;
|
|
52
|
+
readonly O: typeof GroupPhotoResponse;
|
|
53
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
54
|
+
};
|
|
49
55
|
readonly reportMessage: {
|
|
50
56
|
readonly name: "ReportMessage";
|
|
51
57
|
readonly I: typeof ReportMessageRequest;
|
|
@@ -99,6 +105,18 @@ export declare const PChatModerationService: {
|
|
|
99
105
|
readonly O: typeof ChatUserAdminListResponse;
|
|
100
106
|
readonly kind: MethodKind.ServerStreaming;
|
|
101
107
|
};
|
|
108
|
+
readonly setGroupPhoto: {
|
|
109
|
+
readonly name: "SetGroupPhoto";
|
|
110
|
+
readonly I: typeof GroupPhotoSetRequest;
|
|
111
|
+
readonly O: typeof EmptyResponse;
|
|
112
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
113
|
+
};
|
|
114
|
+
readonly deleteGroupPhoto: {
|
|
115
|
+
readonly name: "DeleteGroupPhoto";
|
|
116
|
+
readonly I: typeof ByIdRequest;
|
|
117
|
+
readonly O: typeof EmptyResponse;
|
|
118
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
119
|
+
};
|
|
102
120
|
readonly applySanction: {
|
|
103
121
|
readonly name: "ApplySanction";
|
|
104
122
|
readonly I: typeof SanctionRequest;
|
|
@@ -49,6 +49,12 @@ exports.PChatService = {
|
|
|
49
49
|
O: chat_messages_pb_js_1.ChatMemberListResponse,
|
|
50
50
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
51
51
|
},
|
|
52
|
+
getGroupPhoto: {
|
|
53
|
+
name: "GetGroupPhoto",
|
|
54
|
+
I: general_pb_js_1.ByIdRequest,
|
|
55
|
+
O: chat_messages_pb_js_1.GroupPhotoResponse,
|
|
56
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
57
|
+
},
|
|
52
58
|
reportMessage: {
|
|
53
59
|
name: "ReportMessage",
|
|
54
60
|
I: chat_messages_pb_js_1.ReportMessageRequest,
|
|
@@ -102,6 +108,18 @@ exports.PChatModerationService = {
|
|
|
102
108
|
O: chat_messages_pb_js_1.ChatUserAdminListResponse,
|
|
103
109
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
104
110
|
},
|
|
111
|
+
setGroupPhoto: {
|
|
112
|
+
name: "SetGroupPhoto",
|
|
113
|
+
I: chat_messages_pb_js_1.GroupPhotoSetRequest,
|
|
114
|
+
O: general_pb_js_1.EmptyResponse,
|
|
115
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
116
|
+
},
|
|
117
|
+
deleteGroupPhoto: {
|
|
118
|
+
name: "DeleteGroupPhoto",
|
|
119
|
+
I: general_pb_js_1.ByIdRequest,
|
|
120
|
+
O: general_pb_js_1.EmptyResponse,
|
|
121
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
122
|
+
},
|
|
105
123
|
applySanction: {
|
|
106
124
|
name: "ApplySanction",
|
|
107
125
|
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
|
-
import { EmptyRequest, EmptyResponse, PaginateRequest } from "../general_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";
|
|
3
|
+
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateRequest } from "../general_nest";
|
|
4
|
+
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, 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 {
|
|
@@ -12,6 +12,7 @@ export interface PChatServiceClient {
|
|
|
12
12
|
messageHistory(request: MessageHistoryRequest, metadata?: Metadata): Observable<MessageHistoryResponse>;
|
|
13
13
|
pinnedMessages(request: PinnedMessagesRequest, metadata?: Metadata): Observable<PinnedMessagesResponse>;
|
|
14
14
|
listMembers(request: GroupBySlugRequest, metadata?: Metadata): Observable<ChatMemberListResponse>;
|
|
15
|
+
getGroupPhoto(request: ByIdRequest, metadata?: Metadata): Observable<GroupPhotoResponse>;
|
|
15
16
|
reportMessage(request: ReportMessageRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
16
17
|
blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
17
18
|
unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
@@ -25,6 +26,7 @@ export interface PChatServiceController {
|
|
|
25
26
|
messageHistory(request: MessageHistoryRequest, metadata?: Metadata): Observable<MessageHistoryResponse>;
|
|
26
27
|
pinnedMessages(request: PinnedMessagesRequest, metadata?: Metadata): Observable<PinnedMessagesResponse>;
|
|
27
28
|
listMembers(request: GroupBySlugRequest, metadata?: Metadata): Observable<ChatMemberListResponse>;
|
|
29
|
+
getGroupPhoto(request: ByIdRequest, metadata?: Metadata): Observable<GroupPhotoResponse>;
|
|
28
30
|
reportMessage(request: ReportMessageRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
29
31
|
blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
30
32
|
unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
@@ -37,6 +39,8 @@ export interface PChatModerationServiceClient {
|
|
|
37
39
|
deleteGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
38
40
|
adminListGroups(request: EmptyRequest, metadata?: Metadata): Observable<ChatGroupListResponse>;
|
|
39
41
|
adminListUsers(request: PaginateRequest, metadata?: Metadata): Observable<ChatUserAdminListResponse>;
|
|
42
|
+
setGroupPhoto(request: GroupPhotoSetRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
43
|
+
deleteGroupPhoto(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
40
44
|
applySanction(request: SanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
41
45
|
revokeSanction(request: RevokeSanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
42
46
|
listSanctions(request: PaginateRequest, metadata?: Metadata): Observable<SanctionListResponse>;
|
|
@@ -52,6 +56,8 @@ export interface PChatModerationServiceController {
|
|
|
52
56
|
deleteGroup(request: GroupBySlugRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
53
57
|
adminListGroups(request: EmptyRequest, metadata?: Metadata): Observable<ChatGroupListResponse>;
|
|
54
58
|
adminListUsers(request: PaginateRequest, metadata?: Metadata): Observable<ChatUserAdminListResponse>;
|
|
59
|
+
setGroupPhoto(request: GroupPhotoSetRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
60
|
+
deleteGroupPhoto(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
55
61
|
applySanction(request: SanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
56
62
|
revokeSanction(request: RevokeSanctionRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
57
63
|
listSanctions(request: PaginateRequest, metadata?: Metadata): Observable<SanctionListResponse>;
|
|
@@ -16,6 +16,7 @@ function PChatServiceControllerMethods() {
|
|
|
16
16
|
"messageHistory",
|
|
17
17
|
"pinnedMessages",
|
|
18
18
|
"listMembers",
|
|
19
|
+
"getGroupPhoto",
|
|
19
20
|
"reportMessage",
|
|
20
21
|
"blockUser",
|
|
21
22
|
"unblockUser",
|
|
@@ -40,6 +41,8 @@ function PChatModerationServiceControllerMethods() {
|
|
|
40
41
|
"deleteGroup",
|
|
41
42
|
"adminListGroups",
|
|
42
43
|
"adminListUsers",
|
|
44
|
+
"setGroupPhoto",
|
|
45
|
+
"deleteGroupPhoto",
|
|
43
46
|
"applySanction",
|
|
44
47
|
"revokeSanction",
|
|
45
48
|
"listSanctions",
|
package/package.json
CHANGED
|
@@ -174,6 +174,19 @@ message ChatMemberDto {
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
// Admin user directory row: chat-wide view of one user.
|
|
177
|
+
// Uploaded group photo (admin-set; resized to 512px JPEG micro-side).
|
|
178
|
+
message GroupPhotoSetRequest {
|
|
179
|
+
string id = 1;
|
|
180
|
+
bytes data = 2;
|
|
181
|
+
string mimetype = 3;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
message GroupPhotoResponse {
|
|
185
|
+
ResponseStatus status = 1;
|
|
186
|
+
bytes data = 2;
|
|
187
|
+
string mimetype = 3;
|
|
188
|
+
}
|
|
189
|
+
|
|
177
190
|
message ChatUserAdminDto {
|
|
178
191
|
string user_id = 1;
|
|
179
192
|
string username = 2;
|
|
@@ -14,6 +14,7 @@ service PChatService {
|
|
|
14
14
|
rpc MessageHistory(MessageHistoryRequest) returns(stream MessageHistoryResponse) {}
|
|
15
15
|
rpc PinnedMessages(PinnedMessagesRequest) returns(stream PinnedMessagesResponse) {}
|
|
16
16
|
rpc ListMembers(GroupBySlugRequest) returns(stream ChatMemberListResponse) {}
|
|
17
|
+
rpc GetGroupPhoto(ByIdRequest) returns(stream GroupPhotoResponse) {}
|
|
17
18
|
|
|
18
19
|
rpc ReportMessage(ReportMessageRequest) returns(stream EmptyResponse) {}
|
|
19
20
|
rpc BlockUser(BlockUserRequest) returns(stream EmptyResponse) {}
|
|
@@ -29,6 +30,8 @@ service PChatModerationService {
|
|
|
29
30
|
rpc AdminListGroups(EmptyRequest) returns(stream ChatGroupListResponse) {}
|
|
30
31
|
// Chat-wide user directory (users who joined at least one group).
|
|
31
32
|
rpc AdminListUsers(PaginateRequest) returns(stream ChatUserAdminListResponse) {}
|
|
33
|
+
rpc SetGroupPhoto(GroupPhotoSetRequest) returns(stream EmptyResponse) {}
|
|
34
|
+
rpc DeleteGroupPhoto(ByIdRequest) returns(stream EmptyResponse) {}
|
|
32
35
|
|
|
33
36
|
rpc ApplySanction(SanctionRequest) returns(stream EmptyResponse) {}
|
|
34
37
|
rpc RevokeSanction(RevokeSanctionRequest) returns(stream EmptyResponse) {}
|