jr-common-micro 1.1.49 → 1.1.51
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 +171 -0
- package/dist/proto/micro/v1/chat/chat_messages_nest.js +5 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +395 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.js +873 -0
- package/dist/proto/micro/v1/chat/index.d.ts +3 -0
- package/dist/proto/micro/v1/chat/index.js +7 -0
- package/dist/proto/micro/v1/chat/services_connect.d.ts +139 -0
- package/dist/proto/micro/v1/chat/services_connect.js +142 -0
- package/dist/proto/micro/v1/chat/services_nest.d.ts +60 -0
- package/dist/proto/micro/v1/chat/services_nest.js +61 -0
- package/dist/proto/micro/v1/index.d.ts +1 -0
- package/dist/proto/micro/v1/index.js +2 -1
- package/dist/proto/micro/v1/user/profile_messages_nest.d.ts +4 -0
- package/dist/proto/micro/v1/user/profile_messages_pb.d.ts +12 -0
- package/dist/proto/micro/v1/user/profile_messages_pb.js +28 -1
- package/dist/proto/micro/v1/user/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/user/services_connect.js +6 -0
- package/dist/proto/micro/v1/user/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/user/services_nest.js +1 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +2 -1
- package/package.json +1 -1
- package/proto/micro/v1/chat/chat_messages.proto +208 -0
- package/proto/micro/v1/chat/services.proto +39 -0
- package/proto/micro/v1/user/profile_messages.proto +5 -0
- package/proto/micro/v1/user/services.proto +1 -0
|
@@ -0,0 +1,873 @@
|
|
|
1
|
+
"use strict";
|
|
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;
|
|
4
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
|
+
const general_pb_js_1 = require("../general_pb.js");
|
|
6
|
+
class ChatGroupDto extends protobuf_1.Message {
|
|
7
|
+
id = "";
|
|
8
|
+
name = "";
|
|
9
|
+
slug = "";
|
|
10
|
+
description = "";
|
|
11
|
+
icon = "";
|
|
12
|
+
type = "";
|
|
13
|
+
isVipOnly = false;
|
|
14
|
+
slowModeSeconds = 0;
|
|
15
|
+
memberCount = 0;
|
|
16
|
+
onlineCount = 0;
|
|
17
|
+
membership = "";
|
|
18
|
+
unreadCount = 0;
|
|
19
|
+
lastMessagePreview = "";
|
|
20
|
+
lastMessageAt = "";
|
|
21
|
+
constructor(data) {
|
|
22
|
+
super();
|
|
23
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
24
|
+
}
|
|
25
|
+
static runtime = protobuf_1.proto3;
|
|
26
|
+
static typeName = "micro.v1.chat.ChatGroupDto";
|
|
27
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
28
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
29
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 },
|
|
30
|
+
{ no: 3, name: "slug", kind: "scalar", T: 9 },
|
|
31
|
+
{ no: 4, name: "description", kind: "scalar", T: 9 },
|
|
32
|
+
{ no: 5, name: "icon", kind: "scalar", T: 9 },
|
|
33
|
+
{ no: 6, name: "type", kind: "scalar", T: 9 },
|
|
34
|
+
{ no: 7, name: "is_vip_only", kind: "scalar", T: 8 },
|
|
35
|
+
{ no: 8, name: "slow_mode_seconds", kind: "scalar", T: 5 },
|
|
36
|
+
{ no: 9, name: "member_count", kind: "scalar", T: 13 },
|
|
37
|
+
{ no: 10, name: "online_count", kind: "scalar", T: 13 },
|
|
38
|
+
{ no: 11, name: "membership", kind: "scalar", T: 9 },
|
|
39
|
+
{ no: 12, name: "unread_count", kind: "scalar", T: 13 },
|
|
40
|
+
{ no: 13, name: "last_message_preview", kind: "scalar", T: 9 },
|
|
41
|
+
{ no: 14, name: "last_message_at", kind: "scalar", T: 9 },
|
|
42
|
+
]);
|
|
43
|
+
static fromBinary(bytes, options) {
|
|
44
|
+
return new ChatGroupDto().fromBinary(bytes, options);
|
|
45
|
+
}
|
|
46
|
+
static fromJson(jsonValue, options) {
|
|
47
|
+
return new ChatGroupDto().fromJson(jsonValue, options);
|
|
48
|
+
}
|
|
49
|
+
static fromJsonString(jsonString, options) {
|
|
50
|
+
return new ChatGroupDto().fromJsonString(jsonString, options);
|
|
51
|
+
}
|
|
52
|
+
static equals(a, b) {
|
|
53
|
+
return protobuf_1.proto3.util.equals(ChatGroupDto, a, b);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.ChatGroupDto = ChatGroupDto;
|
|
57
|
+
class ChatGroupListResponse extends protobuf_1.Message {
|
|
58
|
+
status;
|
|
59
|
+
data = [];
|
|
60
|
+
constructor(data) {
|
|
61
|
+
super();
|
|
62
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
63
|
+
}
|
|
64
|
+
static runtime = protobuf_1.proto3;
|
|
65
|
+
static typeName = "micro.v1.chat.ChatGroupListResponse";
|
|
66
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
67
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
68
|
+
{ no: 2, name: "data", kind: "message", T: ChatGroupDto, repeated: true },
|
|
69
|
+
]);
|
|
70
|
+
static fromBinary(bytes, options) {
|
|
71
|
+
return new ChatGroupListResponse().fromBinary(bytes, options);
|
|
72
|
+
}
|
|
73
|
+
static fromJson(jsonValue, options) {
|
|
74
|
+
return new ChatGroupListResponse().fromJson(jsonValue, options);
|
|
75
|
+
}
|
|
76
|
+
static fromJsonString(jsonString, options) {
|
|
77
|
+
return new ChatGroupListResponse().fromJsonString(jsonString, options);
|
|
78
|
+
}
|
|
79
|
+
static equals(a, b) {
|
|
80
|
+
return protobuf_1.proto3.util.equals(ChatGroupListResponse, a, b);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.ChatGroupListResponse = ChatGroupListResponse;
|
|
84
|
+
class GroupBySlugRequest extends protobuf_1.Message {
|
|
85
|
+
slug = "";
|
|
86
|
+
constructor(data) {
|
|
87
|
+
super();
|
|
88
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
89
|
+
}
|
|
90
|
+
static runtime = protobuf_1.proto3;
|
|
91
|
+
static typeName = "micro.v1.chat.GroupBySlugRequest";
|
|
92
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
93
|
+
{ no: 1, name: "slug", kind: "scalar", T: 9 },
|
|
94
|
+
]);
|
|
95
|
+
static fromBinary(bytes, options) {
|
|
96
|
+
return new GroupBySlugRequest().fromBinary(bytes, options);
|
|
97
|
+
}
|
|
98
|
+
static fromJson(jsonValue, options) {
|
|
99
|
+
return new GroupBySlugRequest().fromJson(jsonValue, options);
|
|
100
|
+
}
|
|
101
|
+
static fromJsonString(jsonString, options) {
|
|
102
|
+
return new GroupBySlugRequest().fromJsonString(jsonString, options);
|
|
103
|
+
}
|
|
104
|
+
static equals(a, b) {
|
|
105
|
+
return protobuf_1.proto3.util.equals(GroupBySlugRequest, a, b);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.GroupBySlugRequest = GroupBySlugRequest;
|
|
109
|
+
class JoinGroupResponse extends protobuf_1.Message {
|
|
110
|
+
status;
|
|
111
|
+
membership = "";
|
|
112
|
+
constructor(data) {
|
|
113
|
+
super();
|
|
114
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
115
|
+
}
|
|
116
|
+
static runtime = protobuf_1.proto3;
|
|
117
|
+
static typeName = "micro.v1.chat.JoinGroupResponse";
|
|
118
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
119
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
120
|
+
{ no: 2, name: "membership", kind: "scalar", T: 9 },
|
|
121
|
+
]);
|
|
122
|
+
static fromBinary(bytes, options) {
|
|
123
|
+
return new JoinGroupResponse().fromBinary(bytes, options);
|
|
124
|
+
}
|
|
125
|
+
static fromJson(jsonValue, options) {
|
|
126
|
+
return new JoinGroupResponse().fromJson(jsonValue, options);
|
|
127
|
+
}
|
|
128
|
+
static fromJsonString(jsonString, options) {
|
|
129
|
+
return new JoinGroupResponse().fromJsonString(jsonString, options);
|
|
130
|
+
}
|
|
131
|
+
static equals(a, b) {
|
|
132
|
+
return protobuf_1.proto3.util.equals(JoinGroupResponse, a, b);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.JoinGroupResponse = JoinGroupResponse;
|
|
136
|
+
class ChatGroupSingleResponse extends protobuf_1.Message {
|
|
137
|
+
status;
|
|
138
|
+
data;
|
|
139
|
+
constructor(data) {
|
|
140
|
+
super();
|
|
141
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
142
|
+
}
|
|
143
|
+
static runtime = protobuf_1.proto3;
|
|
144
|
+
static typeName = "micro.v1.chat.ChatGroupSingleResponse";
|
|
145
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
146
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
147
|
+
{ no: 2, name: "data", kind: "message", T: ChatGroupDto },
|
|
148
|
+
]);
|
|
149
|
+
static fromBinary(bytes, options) {
|
|
150
|
+
return new ChatGroupSingleResponse().fromBinary(bytes, options);
|
|
151
|
+
}
|
|
152
|
+
static fromJson(jsonValue, options) {
|
|
153
|
+
return new ChatGroupSingleResponse().fromJson(jsonValue, options);
|
|
154
|
+
}
|
|
155
|
+
static fromJsonString(jsonString, options) {
|
|
156
|
+
return new ChatGroupSingleResponse().fromJsonString(jsonString, options);
|
|
157
|
+
}
|
|
158
|
+
static equals(a, b) {
|
|
159
|
+
return protobuf_1.proto3.util.equals(ChatGroupSingleResponse, a, b);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
exports.ChatGroupSingleResponse = ChatGroupSingleResponse;
|
|
163
|
+
class ChatMessageDto extends protobuf_1.Message {
|
|
164
|
+
id = "";
|
|
165
|
+
groupId = "";
|
|
166
|
+
userId = "";
|
|
167
|
+
username = "";
|
|
168
|
+
role = "";
|
|
169
|
+
avatarId = "";
|
|
170
|
+
type = "";
|
|
171
|
+
content = "";
|
|
172
|
+
replyToId = "";
|
|
173
|
+
replyTo;
|
|
174
|
+
imageUrl = "";
|
|
175
|
+
isPinned = false;
|
|
176
|
+
createdAt = "";
|
|
177
|
+
isDeleted = false;
|
|
178
|
+
constructor(data) {
|
|
179
|
+
super();
|
|
180
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
181
|
+
}
|
|
182
|
+
static runtime = protobuf_1.proto3;
|
|
183
|
+
static typeName = "micro.v1.chat.ChatMessageDto";
|
|
184
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
185
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
186
|
+
{ no: 2, name: "group_id", kind: "scalar", T: 9 },
|
|
187
|
+
{ no: 3, name: "user_id", kind: "scalar", T: 9 },
|
|
188
|
+
{ no: 4, name: "username", kind: "scalar", T: 9 },
|
|
189
|
+
{ no: 5, name: "role", kind: "scalar", T: 9 },
|
|
190
|
+
{ no: 6, name: "avatar_id", kind: "scalar", T: 9 },
|
|
191
|
+
{ no: 7, name: "type", kind: "scalar", T: 9 },
|
|
192
|
+
{ no: 8, name: "content", kind: "scalar", T: 9 },
|
|
193
|
+
{ no: 9, name: "reply_to_id", kind: "scalar", T: 9 },
|
|
194
|
+
{ no: 10, name: "reply_to", kind: "message", T: ChatReplyPreviewDto },
|
|
195
|
+
{ no: 11, name: "image_url", kind: "scalar", T: 9 },
|
|
196
|
+
{ no: 12, name: "is_pinned", kind: "scalar", T: 8 },
|
|
197
|
+
{ no: 13, name: "created_at", kind: "scalar", T: 9 },
|
|
198
|
+
{ no: 14, name: "is_deleted", kind: "scalar", T: 8 },
|
|
199
|
+
]);
|
|
200
|
+
static fromBinary(bytes, options) {
|
|
201
|
+
return new ChatMessageDto().fromBinary(bytes, options);
|
|
202
|
+
}
|
|
203
|
+
static fromJson(jsonValue, options) {
|
|
204
|
+
return new ChatMessageDto().fromJson(jsonValue, options);
|
|
205
|
+
}
|
|
206
|
+
static fromJsonString(jsonString, options) {
|
|
207
|
+
return new ChatMessageDto().fromJsonString(jsonString, options);
|
|
208
|
+
}
|
|
209
|
+
static equals(a, b) {
|
|
210
|
+
return protobuf_1.proto3.util.equals(ChatMessageDto, a, b);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
exports.ChatMessageDto = ChatMessageDto;
|
|
214
|
+
class ChatReplyPreviewDto extends protobuf_1.Message {
|
|
215
|
+
id = "";
|
|
216
|
+
username = "";
|
|
217
|
+
content = "";
|
|
218
|
+
constructor(data) {
|
|
219
|
+
super();
|
|
220
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
221
|
+
}
|
|
222
|
+
static runtime = protobuf_1.proto3;
|
|
223
|
+
static typeName = "micro.v1.chat.ChatReplyPreviewDto";
|
|
224
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
225
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
226
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 },
|
|
227
|
+
{ no: 3, name: "content", kind: "scalar", T: 9 },
|
|
228
|
+
]);
|
|
229
|
+
static fromBinary(bytes, options) {
|
|
230
|
+
return new ChatReplyPreviewDto().fromBinary(bytes, options);
|
|
231
|
+
}
|
|
232
|
+
static fromJson(jsonValue, options) {
|
|
233
|
+
return new ChatReplyPreviewDto().fromJson(jsonValue, options);
|
|
234
|
+
}
|
|
235
|
+
static fromJsonString(jsonString, options) {
|
|
236
|
+
return new ChatReplyPreviewDto().fromJsonString(jsonString, options);
|
|
237
|
+
}
|
|
238
|
+
static equals(a, b) {
|
|
239
|
+
return protobuf_1.proto3.util.equals(ChatReplyPreviewDto, a, b);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
exports.ChatReplyPreviewDto = ChatReplyPreviewDto;
|
|
243
|
+
class MessageHistoryRequest extends protobuf_1.Message {
|
|
244
|
+
groupSlug = "";
|
|
245
|
+
cursor = "";
|
|
246
|
+
limit = 0;
|
|
247
|
+
constructor(data) {
|
|
248
|
+
super();
|
|
249
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
250
|
+
}
|
|
251
|
+
static runtime = protobuf_1.proto3;
|
|
252
|
+
static typeName = "micro.v1.chat.MessageHistoryRequest";
|
|
253
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
254
|
+
{ no: 1, name: "group_slug", kind: "scalar", T: 9 },
|
|
255
|
+
{ no: 2, name: "cursor", kind: "scalar", T: 9 },
|
|
256
|
+
{ no: 3, name: "limit", kind: "scalar", T: 5 },
|
|
257
|
+
]);
|
|
258
|
+
static fromBinary(bytes, options) {
|
|
259
|
+
return new MessageHistoryRequest().fromBinary(bytes, options);
|
|
260
|
+
}
|
|
261
|
+
static fromJson(jsonValue, options) {
|
|
262
|
+
return new MessageHistoryRequest().fromJson(jsonValue, options);
|
|
263
|
+
}
|
|
264
|
+
static fromJsonString(jsonString, options) {
|
|
265
|
+
return new MessageHistoryRequest().fromJsonString(jsonString, options);
|
|
266
|
+
}
|
|
267
|
+
static equals(a, b) {
|
|
268
|
+
return protobuf_1.proto3.util.equals(MessageHistoryRequest, a, b);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
exports.MessageHistoryRequest = MessageHistoryRequest;
|
|
272
|
+
class MessageHistoryResponse extends protobuf_1.Message {
|
|
273
|
+
status;
|
|
274
|
+
data = [];
|
|
275
|
+
nextCursor = "";
|
|
276
|
+
constructor(data) {
|
|
277
|
+
super();
|
|
278
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
279
|
+
}
|
|
280
|
+
static runtime = protobuf_1.proto3;
|
|
281
|
+
static typeName = "micro.v1.chat.MessageHistoryResponse";
|
|
282
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
283
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
284
|
+
{ no: 2, name: "data", kind: "message", T: ChatMessageDto, repeated: true },
|
|
285
|
+
{ no: 3, name: "next_cursor", kind: "scalar", T: 9 },
|
|
286
|
+
]);
|
|
287
|
+
static fromBinary(bytes, options) {
|
|
288
|
+
return new MessageHistoryResponse().fromBinary(bytes, options);
|
|
289
|
+
}
|
|
290
|
+
static fromJson(jsonValue, options) {
|
|
291
|
+
return new MessageHistoryResponse().fromJson(jsonValue, options);
|
|
292
|
+
}
|
|
293
|
+
static fromJsonString(jsonString, options) {
|
|
294
|
+
return new MessageHistoryResponse().fromJsonString(jsonString, options);
|
|
295
|
+
}
|
|
296
|
+
static equals(a, b) {
|
|
297
|
+
return protobuf_1.proto3.util.equals(MessageHistoryResponse, a, b);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
exports.MessageHistoryResponse = MessageHistoryResponse;
|
|
301
|
+
class PinnedMessagesRequest extends protobuf_1.Message {
|
|
302
|
+
groupSlug = "";
|
|
303
|
+
constructor(data) {
|
|
304
|
+
super();
|
|
305
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
306
|
+
}
|
|
307
|
+
static runtime = protobuf_1.proto3;
|
|
308
|
+
static typeName = "micro.v1.chat.PinnedMessagesRequest";
|
|
309
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
310
|
+
{ no: 1, name: "group_slug", kind: "scalar", T: 9 },
|
|
311
|
+
]);
|
|
312
|
+
static fromBinary(bytes, options) {
|
|
313
|
+
return new PinnedMessagesRequest().fromBinary(bytes, options);
|
|
314
|
+
}
|
|
315
|
+
static fromJson(jsonValue, options) {
|
|
316
|
+
return new PinnedMessagesRequest().fromJson(jsonValue, options);
|
|
317
|
+
}
|
|
318
|
+
static fromJsonString(jsonString, options) {
|
|
319
|
+
return new PinnedMessagesRequest().fromJsonString(jsonString, options);
|
|
320
|
+
}
|
|
321
|
+
static equals(a, b) {
|
|
322
|
+
return protobuf_1.proto3.util.equals(PinnedMessagesRequest, a, b);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
exports.PinnedMessagesRequest = PinnedMessagesRequest;
|
|
326
|
+
class PinnedMessagesResponse extends protobuf_1.Message {
|
|
327
|
+
status;
|
|
328
|
+
data = [];
|
|
329
|
+
constructor(data) {
|
|
330
|
+
super();
|
|
331
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
332
|
+
}
|
|
333
|
+
static runtime = protobuf_1.proto3;
|
|
334
|
+
static typeName = "micro.v1.chat.PinnedMessagesResponse";
|
|
335
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
336
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
337
|
+
{ no: 2, name: "data", kind: "message", T: ChatMessageDto, repeated: true },
|
|
338
|
+
]);
|
|
339
|
+
static fromBinary(bytes, options) {
|
|
340
|
+
return new PinnedMessagesResponse().fromBinary(bytes, options);
|
|
341
|
+
}
|
|
342
|
+
static fromJson(jsonValue, options) {
|
|
343
|
+
return new PinnedMessagesResponse().fromJson(jsonValue, options);
|
|
344
|
+
}
|
|
345
|
+
static fromJsonString(jsonString, options) {
|
|
346
|
+
return new PinnedMessagesResponse().fromJsonString(jsonString, options);
|
|
347
|
+
}
|
|
348
|
+
static equals(a, b) {
|
|
349
|
+
return protobuf_1.proto3.util.equals(PinnedMessagesResponse, a, b);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
exports.PinnedMessagesResponse = PinnedMessagesResponse;
|
|
353
|
+
class ReportMessageRequest extends protobuf_1.Message {
|
|
354
|
+
messageId = "";
|
|
355
|
+
reason = "";
|
|
356
|
+
constructor(data) {
|
|
357
|
+
super();
|
|
358
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
359
|
+
}
|
|
360
|
+
static runtime = protobuf_1.proto3;
|
|
361
|
+
static typeName = "micro.v1.chat.ReportMessageRequest";
|
|
362
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
363
|
+
{ no: 1, name: "message_id", kind: "scalar", T: 9 },
|
|
364
|
+
{ no: 2, name: "reason", kind: "scalar", T: 9 },
|
|
365
|
+
]);
|
|
366
|
+
static fromBinary(bytes, options) {
|
|
367
|
+
return new ReportMessageRequest().fromBinary(bytes, options);
|
|
368
|
+
}
|
|
369
|
+
static fromJson(jsonValue, options) {
|
|
370
|
+
return new ReportMessageRequest().fromJson(jsonValue, options);
|
|
371
|
+
}
|
|
372
|
+
static fromJsonString(jsonString, options) {
|
|
373
|
+
return new ReportMessageRequest().fromJsonString(jsonString, options);
|
|
374
|
+
}
|
|
375
|
+
static equals(a, b) {
|
|
376
|
+
return protobuf_1.proto3.util.equals(ReportMessageRequest, a, b);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
exports.ReportMessageRequest = ReportMessageRequest;
|
|
380
|
+
class BlockUserRequest extends protobuf_1.Message {
|
|
381
|
+
username = "";
|
|
382
|
+
constructor(data) {
|
|
383
|
+
super();
|
|
384
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
385
|
+
}
|
|
386
|
+
static runtime = protobuf_1.proto3;
|
|
387
|
+
static typeName = "micro.v1.chat.BlockUserRequest";
|
|
388
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
389
|
+
{ no: 1, name: "username", kind: "scalar", T: 9 },
|
|
390
|
+
]);
|
|
391
|
+
static fromBinary(bytes, options) {
|
|
392
|
+
return new BlockUserRequest().fromBinary(bytes, options);
|
|
393
|
+
}
|
|
394
|
+
static fromJson(jsonValue, options) {
|
|
395
|
+
return new BlockUserRequest().fromJson(jsonValue, options);
|
|
396
|
+
}
|
|
397
|
+
static fromJsonString(jsonString, options) {
|
|
398
|
+
return new BlockUserRequest().fromJsonString(jsonString, options);
|
|
399
|
+
}
|
|
400
|
+
static equals(a, b) {
|
|
401
|
+
return protobuf_1.proto3.util.equals(BlockUserRequest, a, b);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
exports.BlockUserRequest = BlockUserRequest;
|
|
405
|
+
class BlockedUsersResponse extends protobuf_1.Message {
|
|
406
|
+
status;
|
|
407
|
+
usernames = [];
|
|
408
|
+
userIds = [];
|
|
409
|
+
constructor(data) {
|
|
410
|
+
super();
|
|
411
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
412
|
+
}
|
|
413
|
+
static runtime = protobuf_1.proto3;
|
|
414
|
+
static typeName = "micro.v1.chat.BlockedUsersResponse";
|
|
415
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
416
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
417
|
+
{ no: 2, name: "usernames", kind: "scalar", T: 9, repeated: true },
|
|
418
|
+
{ no: 3, name: "user_ids", kind: "scalar", T: 9, repeated: true },
|
|
419
|
+
]);
|
|
420
|
+
static fromBinary(bytes, options) {
|
|
421
|
+
return new BlockedUsersResponse().fromBinary(bytes, options);
|
|
422
|
+
}
|
|
423
|
+
static fromJson(jsonValue, options) {
|
|
424
|
+
return new BlockedUsersResponse().fromJson(jsonValue, options);
|
|
425
|
+
}
|
|
426
|
+
static fromJsonString(jsonString, options) {
|
|
427
|
+
return new BlockedUsersResponse().fromJsonString(jsonString, options);
|
|
428
|
+
}
|
|
429
|
+
static equals(a, b) {
|
|
430
|
+
return protobuf_1.proto3.util.equals(BlockedUsersResponse, a, b);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
exports.BlockedUsersResponse = BlockedUsersResponse;
|
|
434
|
+
class GroupUpsertRequest extends protobuf_1.Message {
|
|
435
|
+
id = "";
|
|
436
|
+
name = "";
|
|
437
|
+
description = "";
|
|
438
|
+
icon = "";
|
|
439
|
+
type = "";
|
|
440
|
+
isVipOnly = false;
|
|
441
|
+
slowModeSeconds = 0;
|
|
442
|
+
sortOrder = 0;
|
|
443
|
+
isActive = false;
|
|
444
|
+
constructor(data) {
|
|
445
|
+
super();
|
|
446
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
447
|
+
}
|
|
448
|
+
static runtime = protobuf_1.proto3;
|
|
449
|
+
static typeName = "micro.v1.chat.GroupUpsertRequest";
|
|
450
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
451
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
452
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 },
|
|
453
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 },
|
|
454
|
+
{ no: 4, name: "icon", kind: "scalar", T: 9 },
|
|
455
|
+
{ no: 5, name: "type", kind: "scalar", T: 9 },
|
|
456
|
+
{ no: 6, name: "is_vip_only", kind: "scalar", T: 8 },
|
|
457
|
+
{ no: 7, name: "slow_mode_seconds", kind: "scalar", T: 5 },
|
|
458
|
+
{ no: 8, name: "sort_order", kind: "scalar", T: 5 },
|
|
459
|
+
{ no: 9, name: "is_active", kind: "scalar", T: 8 },
|
|
460
|
+
]);
|
|
461
|
+
static fromBinary(bytes, options) {
|
|
462
|
+
return new GroupUpsertRequest().fromBinary(bytes, options);
|
|
463
|
+
}
|
|
464
|
+
static fromJson(jsonValue, options) {
|
|
465
|
+
return new GroupUpsertRequest().fromJson(jsonValue, options);
|
|
466
|
+
}
|
|
467
|
+
static fromJsonString(jsonString, options) {
|
|
468
|
+
return new GroupUpsertRequest().fromJsonString(jsonString, options);
|
|
469
|
+
}
|
|
470
|
+
static equals(a, b) {
|
|
471
|
+
return protobuf_1.proto3.util.equals(GroupUpsertRequest, a, b);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
exports.GroupUpsertRequest = GroupUpsertRequest;
|
|
475
|
+
class SanctionRequest extends protobuf_1.Message {
|
|
476
|
+
username = "";
|
|
477
|
+
groupSlug = "";
|
|
478
|
+
type = "";
|
|
479
|
+
durationMinutes = 0;
|
|
480
|
+
reason = "";
|
|
481
|
+
constructor(data) {
|
|
482
|
+
super();
|
|
483
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
484
|
+
}
|
|
485
|
+
static runtime = protobuf_1.proto3;
|
|
486
|
+
static typeName = "micro.v1.chat.SanctionRequest";
|
|
487
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
488
|
+
{ no: 1, name: "username", kind: "scalar", T: 9 },
|
|
489
|
+
{ no: 2, name: "group_slug", kind: "scalar", T: 9 },
|
|
490
|
+
{ no: 3, name: "type", kind: "scalar", T: 9 },
|
|
491
|
+
{ no: 4, name: "duration_minutes", kind: "scalar", T: 5 },
|
|
492
|
+
{ no: 5, name: "reason", kind: "scalar", T: 9 },
|
|
493
|
+
]);
|
|
494
|
+
static fromBinary(bytes, options) {
|
|
495
|
+
return new SanctionRequest().fromBinary(bytes, options);
|
|
496
|
+
}
|
|
497
|
+
static fromJson(jsonValue, options) {
|
|
498
|
+
return new SanctionRequest().fromJson(jsonValue, options);
|
|
499
|
+
}
|
|
500
|
+
static fromJsonString(jsonString, options) {
|
|
501
|
+
return new SanctionRequest().fromJsonString(jsonString, options);
|
|
502
|
+
}
|
|
503
|
+
static equals(a, b) {
|
|
504
|
+
return protobuf_1.proto3.util.equals(SanctionRequest, a, b);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
exports.SanctionRequest = SanctionRequest;
|
|
508
|
+
class RevokeSanctionRequest extends protobuf_1.Message {
|
|
509
|
+
sanctionId = "";
|
|
510
|
+
constructor(data) {
|
|
511
|
+
super();
|
|
512
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
513
|
+
}
|
|
514
|
+
static runtime = protobuf_1.proto3;
|
|
515
|
+
static typeName = "micro.v1.chat.RevokeSanctionRequest";
|
|
516
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
517
|
+
{ no: 1, name: "sanction_id", kind: "scalar", T: 9 },
|
|
518
|
+
]);
|
|
519
|
+
static fromBinary(bytes, options) {
|
|
520
|
+
return new RevokeSanctionRequest().fromBinary(bytes, options);
|
|
521
|
+
}
|
|
522
|
+
static fromJson(jsonValue, options) {
|
|
523
|
+
return new RevokeSanctionRequest().fromJson(jsonValue, options);
|
|
524
|
+
}
|
|
525
|
+
static fromJsonString(jsonString, options) {
|
|
526
|
+
return new RevokeSanctionRequest().fromJsonString(jsonString, options);
|
|
527
|
+
}
|
|
528
|
+
static equals(a, b) {
|
|
529
|
+
return protobuf_1.proto3.util.equals(RevokeSanctionRequest, a, b);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
exports.RevokeSanctionRequest = RevokeSanctionRequest;
|
|
533
|
+
class DeleteMessageRequest extends protobuf_1.Message {
|
|
534
|
+
messageId = "";
|
|
535
|
+
constructor(data) {
|
|
536
|
+
super();
|
|
537
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
538
|
+
}
|
|
539
|
+
static runtime = protobuf_1.proto3;
|
|
540
|
+
static typeName = "micro.v1.chat.DeleteMessageRequest";
|
|
541
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
542
|
+
{ no: 1, name: "message_id", kind: "scalar", T: 9 },
|
|
543
|
+
]);
|
|
544
|
+
static fromBinary(bytes, options) {
|
|
545
|
+
return new DeleteMessageRequest().fromBinary(bytes, options);
|
|
546
|
+
}
|
|
547
|
+
static fromJson(jsonValue, options) {
|
|
548
|
+
return new DeleteMessageRequest().fromJson(jsonValue, options);
|
|
549
|
+
}
|
|
550
|
+
static fromJsonString(jsonString, options) {
|
|
551
|
+
return new DeleteMessageRequest().fromJsonString(jsonString, options);
|
|
552
|
+
}
|
|
553
|
+
static equals(a, b) {
|
|
554
|
+
return protobuf_1.proto3.util.equals(DeleteMessageRequest, a, b);
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
exports.DeleteMessageRequest = DeleteMessageRequest;
|
|
558
|
+
class PinMessageRequest extends protobuf_1.Message {
|
|
559
|
+
messageId = "";
|
|
560
|
+
pinned = false;
|
|
561
|
+
constructor(data) {
|
|
562
|
+
super();
|
|
563
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
564
|
+
}
|
|
565
|
+
static runtime = protobuf_1.proto3;
|
|
566
|
+
static typeName = "micro.v1.chat.PinMessageRequest";
|
|
567
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
568
|
+
{ no: 1, name: "message_id", kind: "scalar", T: 9 },
|
|
569
|
+
{ no: 2, name: "pinned", kind: "scalar", T: 8 },
|
|
570
|
+
]);
|
|
571
|
+
static fromBinary(bytes, options) {
|
|
572
|
+
return new PinMessageRequest().fromBinary(bytes, options);
|
|
573
|
+
}
|
|
574
|
+
static fromJson(jsonValue, options) {
|
|
575
|
+
return new PinMessageRequest().fromJson(jsonValue, options);
|
|
576
|
+
}
|
|
577
|
+
static fromJsonString(jsonString, options) {
|
|
578
|
+
return new PinMessageRequest().fromJsonString(jsonString, options);
|
|
579
|
+
}
|
|
580
|
+
static equals(a, b) {
|
|
581
|
+
return protobuf_1.proto3.util.equals(PinMessageRequest, a, b);
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
exports.PinMessageRequest = PinMessageRequest;
|
|
585
|
+
class MemberActionRequest extends protobuf_1.Message {
|
|
586
|
+
groupSlug = "";
|
|
587
|
+
username = "";
|
|
588
|
+
action = "";
|
|
589
|
+
constructor(data) {
|
|
590
|
+
super();
|
|
591
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
592
|
+
}
|
|
593
|
+
static runtime = protobuf_1.proto3;
|
|
594
|
+
static typeName = "micro.v1.chat.MemberActionRequest";
|
|
595
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
596
|
+
{ no: 1, name: "group_slug", kind: "scalar", T: 9 },
|
|
597
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 },
|
|
598
|
+
{ no: 3, name: "action", kind: "scalar", T: 9 },
|
|
599
|
+
]);
|
|
600
|
+
static fromBinary(bytes, options) {
|
|
601
|
+
return new MemberActionRequest().fromBinary(bytes, options);
|
|
602
|
+
}
|
|
603
|
+
static fromJson(jsonValue, options) {
|
|
604
|
+
return new MemberActionRequest().fromJson(jsonValue, options);
|
|
605
|
+
}
|
|
606
|
+
static fromJsonString(jsonString, options) {
|
|
607
|
+
return new MemberActionRequest().fromJsonString(jsonString, options);
|
|
608
|
+
}
|
|
609
|
+
static equals(a, b) {
|
|
610
|
+
return protobuf_1.proto3.util.equals(MemberActionRequest, a, b);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
exports.MemberActionRequest = MemberActionRequest;
|
|
614
|
+
class PendingMembersRequest extends protobuf_1.Message {
|
|
615
|
+
groupSlug = "";
|
|
616
|
+
constructor(data) {
|
|
617
|
+
super();
|
|
618
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
619
|
+
}
|
|
620
|
+
static runtime = protobuf_1.proto3;
|
|
621
|
+
static typeName = "micro.v1.chat.PendingMembersRequest";
|
|
622
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
623
|
+
{ no: 1, name: "group_slug", kind: "scalar", T: 9 },
|
|
624
|
+
]);
|
|
625
|
+
static fromBinary(bytes, options) {
|
|
626
|
+
return new PendingMembersRequest().fromBinary(bytes, options);
|
|
627
|
+
}
|
|
628
|
+
static fromJson(jsonValue, options) {
|
|
629
|
+
return new PendingMembersRequest().fromJson(jsonValue, options);
|
|
630
|
+
}
|
|
631
|
+
static fromJsonString(jsonString, options) {
|
|
632
|
+
return new PendingMembersRequest().fromJsonString(jsonString, options);
|
|
633
|
+
}
|
|
634
|
+
static equals(a, b) {
|
|
635
|
+
return protobuf_1.proto3.util.equals(PendingMembersRequest, a, b);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
exports.PendingMembersRequest = PendingMembersRequest;
|
|
639
|
+
class ChatMemberDto extends protobuf_1.Message {
|
|
640
|
+
userId = "";
|
|
641
|
+
username = "";
|
|
642
|
+
avatarId = "";
|
|
643
|
+
role = "";
|
|
644
|
+
status = "";
|
|
645
|
+
joinedAt = "";
|
|
646
|
+
isOnline = false;
|
|
647
|
+
constructor(data) {
|
|
648
|
+
super();
|
|
649
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
650
|
+
}
|
|
651
|
+
static runtime = protobuf_1.proto3;
|
|
652
|
+
static typeName = "micro.v1.chat.ChatMemberDto";
|
|
653
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
654
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 },
|
|
655
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 },
|
|
656
|
+
{ no: 3, name: "avatar_id", kind: "scalar", T: 9 },
|
|
657
|
+
{ no: 4, name: "role", kind: "scalar", T: 9 },
|
|
658
|
+
{ no: 5, name: "status", kind: "scalar", T: 9 },
|
|
659
|
+
{ no: 6, name: "joined_at", kind: "scalar", T: 9 },
|
|
660
|
+
{ no: 7, name: "is_online", kind: "scalar", T: 8 },
|
|
661
|
+
]);
|
|
662
|
+
static fromBinary(bytes, options) {
|
|
663
|
+
return new ChatMemberDto().fromBinary(bytes, options);
|
|
664
|
+
}
|
|
665
|
+
static fromJson(jsonValue, options) {
|
|
666
|
+
return new ChatMemberDto().fromJson(jsonValue, options);
|
|
667
|
+
}
|
|
668
|
+
static fromJsonString(jsonString, options) {
|
|
669
|
+
return new ChatMemberDto().fromJsonString(jsonString, options);
|
|
670
|
+
}
|
|
671
|
+
static equals(a, b) {
|
|
672
|
+
return protobuf_1.proto3.util.equals(ChatMemberDto, a, b);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
exports.ChatMemberDto = ChatMemberDto;
|
|
676
|
+
class ChatMemberListResponse extends protobuf_1.Message {
|
|
677
|
+
status;
|
|
678
|
+
pagination;
|
|
679
|
+
data = [];
|
|
680
|
+
constructor(data) {
|
|
681
|
+
super();
|
|
682
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
683
|
+
}
|
|
684
|
+
static runtime = protobuf_1.proto3;
|
|
685
|
+
static typeName = "micro.v1.chat.ChatMemberListResponse";
|
|
686
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
687
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
688
|
+
{ no: 2, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult },
|
|
689
|
+
{ no: 3, name: "data", kind: "message", T: ChatMemberDto, repeated: true },
|
|
690
|
+
]);
|
|
691
|
+
static fromBinary(bytes, options) {
|
|
692
|
+
return new ChatMemberListResponse().fromBinary(bytes, options);
|
|
693
|
+
}
|
|
694
|
+
static fromJson(jsonValue, options) {
|
|
695
|
+
return new ChatMemberListResponse().fromJson(jsonValue, options);
|
|
696
|
+
}
|
|
697
|
+
static fromJsonString(jsonString, options) {
|
|
698
|
+
return new ChatMemberListResponse().fromJsonString(jsonString, options);
|
|
699
|
+
}
|
|
700
|
+
static equals(a, b) {
|
|
701
|
+
return protobuf_1.proto3.util.equals(ChatMemberListResponse, a, b);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
exports.ChatMemberListResponse = ChatMemberListResponse;
|
|
705
|
+
class SanctionDto extends protobuf_1.Message {
|
|
706
|
+
id = "";
|
|
707
|
+
userId = "";
|
|
708
|
+
username = "";
|
|
709
|
+
groupSlug = "";
|
|
710
|
+
type = "";
|
|
711
|
+
reason = "";
|
|
712
|
+
expiresAt = "";
|
|
713
|
+
createdBy = "";
|
|
714
|
+
createdAt = "";
|
|
715
|
+
constructor(data) {
|
|
716
|
+
super();
|
|
717
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
718
|
+
}
|
|
719
|
+
static runtime = protobuf_1.proto3;
|
|
720
|
+
static typeName = "micro.v1.chat.SanctionDto";
|
|
721
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
722
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
723
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 9 },
|
|
724
|
+
{ no: 3, name: "username", kind: "scalar", T: 9 },
|
|
725
|
+
{ no: 4, name: "group_slug", kind: "scalar", T: 9 },
|
|
726
|
+
{ no: 5, name: "type", kind: "scalar", T: 9 },
|
|
727
|
+
{ no: 6, name: "reason", kind: "scalar", T: 9 },
|
|
728
|
+
{ no: 7, name: "expires_at", kind: "scalar", T: 9 },
|
|
729
|
+
{ no: 8, name: "created_by", kind: "scalar", T: 9 },
|
|
730
|
+
{ no: 9, name: "created_at", kind: "scalar", T: 9 },
|
|
731
|
+
]);
|
|
732
|
+
static fromBinary(bytes, options) {
|
|
733
|
+
return new SanctionDto().fromBinary(bytes, options);
|
|
734
|
+
}
|
|
735
|
+
static fromJson(jsonValue, options) {
|
|
736
|
+
return new SanctionDto().fromJson(jsonValue, options);
|
|
737
|
+
}
|
|
738
|
+
static fromJsonString(jsonString, options) {
|
|
739
|
+
return new SanctionDto().fromJsonString(jsonString, options);
|
|
740
|
+
}
|
|
741
|
+
static equals(a, b) {
|
|
742
|
+
return protobuf_1.proto3.util.equals(SanctionDto, a, b);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
exports.SanctionDto = SanctionDto;
|
|
746
|
+
class SanctionListResponse extends protobuf_1.Message {
|
|
747
|
+
status;
|
|
748
|
+
pagination;
|
|
749
|
+
data = [];
|
|
750
|
+
constructor(data) {
|
|
751
|
+
super();
|
|
752
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
753
|
+
}
|
|
754
|
+
static runtime = protobuf_1.proto3;
|
|
755
|
+
static typeName = "micro.v1.chat.SanctionListResponse";
|
|
756
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
757
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
758
|
+
{ no: 2, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult },
|
|
759
|
+
{ no: 3, name: "data", kind: "message", T: SanctionDto, repeated: true },
|
|
760
|
+
]);
|
|
761
|
+
static fromBinary(bytes, options) {
|
|
762
|
+
return new SanctionListResponse().fromBinary(bytes, options);
|
|
763
|
+
}
|
|
764
|
+
static fromJson(jsonValue, options) {
|
|
765
|
+
return new SanctionListResponse().fromJson(jsonValue, options);
|
|
766
|
+
}
|
|
767
|
+
static fromJsonString(jsonString, options) {
|
|
768
|
+
return new SanctionListResponse().fromJsonString(jsonString, options);
|
|
769
|
+
}
|
|
770
|
+
static equals(a, b) {
|
|
771
|
+
return protobuf_1.proto3.util.equals(SanctionListResponse, a, b);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
exports.SanctionListResponse = SanctionListResponse;
|
|
775
|
+
class ReportDto extends protobuf_1.Message {
|
|
776
|
+
id = "";
|
|
777
|
+
groupId = "";
|
|
778
|
+
messageId = "";
|
|
779
|
+
reporterId = "";
|
|
780
|
+
reportedUserId = "";
|
|
781
|
+
reportedUsername = "";
|
|
782
|
+
contentSnapshot = "";
|
|
783
|
+
reason = "";
|
|
784
|
+
status = "";
|
|
785
|
+
createdAt = "";
|
|
786
|
+
constructor(data) {
|
|
787
|
+
super();
|
|
788
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
789
|
+
}
|
|
790
|
+
static runtime = protobuf_1.proto3;
|
|
791
|
+
static typeName = "micro.v1.chat.ReportDto";
|
|
792
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
793
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
794
|
+
{ no: 2, name: "group_id", kind: "scalar", T: 9 },
|
|
795
|
+
{ no: 3, name: "message_id", kind: "scalar", T: 9 },
|
|
796
|
+
{ no: 4, name: "reporter_id", kind: "scalar", T: 9 },
|
|
797
|
+
{ no: 5, name: "reported_user_id", kind: "scalar", T: 9 },
|
|
798
|
+
{ no: 6, name: "reported_username", kind: "scalar", T: 9 },
|
|
799
|
+
{ no: 7, name: "content_snapshot", kind: "scalar", T: 9 },
|
|
800
|
+
{ no: 8, name: "reason", kind: "scalar", T: 9 },
|
|
801
|
+
{ no: 9, name: "status", kind: "scalar", T: 9 },
|
|
802
|
+
{ no: 10, name: "created_at", kind: "scalar", T: 9 },
|
|
803
|
+
]);
|
|
804
|
+
static fromBinary(bytes, options) {
|
|
805
|
+
return new ReportDto().fromBinary(bytes, options);
|
|
806
|
+
}
|
|
807
|
+
static fromJson(jsonValue, options) {
|
|
808
|
+
return new ReportDto().fromJson(jsonValue, options);
|
|
809
|
+
}
|
|
810
|
+
static fromJsonString(jsonString, options) {
|
|
811
|
+
return new ReportDto().fromJsonString(jsonString, options);
|
|
812
|
+
}
|
|
813
|
+
static equals(a, b) {
|
|
814
|
+
return protobuf_1.proto3.util.equals(ReportDto, a, b);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
exports.ReportDto = ReportDto;
|
|
818
|
+
class ReportListResponse extends protobuf_1.Message {
|
|
819
|
+
status;
|
|
820
|
+
pagination;
|
|
821
|
+
data = [];
|
|
822
|
+
constructor(data) {
|
|
823
|
+
super();
|
|
824
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
825
|
+
}
|
|
826
|
+
static runtime = protobuf_1.proto3;
|
|
827
|
+
static typeName = "micro.v1.chat.ReportListResponse";
|
|
828
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
829
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
830
|
+
{ no: 2, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult },
|
|
831
|
+
{ no: 3, name: "data", kind: "message", T: ReportDto, repeated: true },
|
|
832
|
+
]);
|
|
833
|
+
static fromBinary(bytes, options) {
|
|
834
|
+
return new ReportListResponse().fromBinary(bytes, options);
|
|
835
|
+
}
|
|
836
|
+
static fromJson(jsonValue, options) {
|
|
837
|
+
return new ReportListResponse().fromJson(jsonValue, options);
|
|
838
|
+
}
|
|
839
|
+
static fromJsonString(jsonString, options) {
|
|
840
|
+
return new ReportListResponse().fromJsonString(jsonString, options);
|
|
841
|
+
}
|
|
842
|
+
static equals(a, b) {
|
|
843
|
+
return protobuf_1.proto3.util.equals(ReportListResponse, a, b);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
exports.ReportListResponse = ReportListResponse;
|
|
847
|
+
class ReviewReportRequest extends protobuf_1.Message {
|
|
848
|
+
reportId = "";
|
|
849
|
+
status = "";
|
|
850
|
+
constructor(data) {
|
|
851
|
+
super();
|
|
852
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
853
|
+
}
|
|
854
|
+
static runtime = protobuf_1.proto3;
|
|
855
|
+
static typeName = "micro.v1.chat.ReviewReportRequest";
|
|
856
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
857
|
+
{ no: 1, name: "report_id", kind: "scalar", T: 9 },
|
|
858
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 },
|
|
859
|
+
]);
|
|
860
|
+
static fromBinary(bytes, options) {
|
|
861
|
+
return new ReviewReportRequest().fromBinary(bytes, options);
|
|
862
|
+
}
|
|
863
|
+
static fromJson(jsonValue, options) {
|
|
864
|
+
return new ReviewReportRequest().fromJson(jsonValue, options);
|
|
865
|
+
}
|
|
866
|
+
static fromJsonString(jsonString, options) {
|
|
867
|
+
return new ReviewReportRequest().fromJsonString(jsonString, options);
|
|
868
|
+
}
|
|
869
|
+
static equals(a, b) {
|
|
870
|
+
return protobuf_1.proto3.util.equals(ReviewReportRequest, a, b);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
exports.ReviewReportRequest = ReviewReportRequest;
|