mezon-js-protobuf 1.8.77 → 1.8.78
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/api/api.ts +161 -151
- package/dist/mezon-js-protobuf/api/api.d.ts +252 -131
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +104 -208
- package/dist/mezon-js-protobuf/utils.d.ts +1 -0
- package/dist/mezon-js-protobuf.cjs.js +168 -146
- package/dist/mezon-js-protobuf.esm.mjs +168 -146
- package/package.json +1 -1
- package/utils.ts +11 -4
package/api/api.ts
CHANGED
|
@@ -302,14 +302,6 @@ export interface ChannelMessage {
|
|
|
302
302
|
avatar: string;
|
|
303
303
|
/** The content payload. */
|
|
304
304
|
content: string;
|
|
305
|
-
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
|
|
306
|
-
create_time:
|
|
307
|
-
| Date
|
|
308
|
-
| undefined;
|
|
309
|
-
/** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated. */
|
|
310
|
-
update_time:
|
|
311
|
-
| Date
|
|
312
|
-
| undefined;
|
|
313
305
|
/** The name of the chat room, or an empty string if this message was not sent through a chat room. */
|
|
314
306
|
channel_label: string;
|
|
315
307
|
/** The clan logo */
|
|
@@ -699,10 +691,8 @@ export interface ChannelAttachment {
|
|
|
699
691
|
url: string;
|
|
700
692
|
/** uploader */
|
|
701
693
|
uploader: string;
|
|
702
|
-
/**
|
|
703
|
-
|
|
704
|
-
| Date
|
|
705
|
-
| undefined;
|
|
694
|
+
/** timestamp */
|
|
695
|
+
create_time_seconds: number;
|
|
706
696
|
/** message id. */
|
|
707
697
|
message_id: string;
|
|
708
698
|
/** width */
|
|
@@ -862,13 +852,9 @@ export interface ListChannelAttachmentRequest {
|
|
|
862
852
|
/** The channel type */
|
|
863
853
|
file_type: string;
|
|
864
854
|
/** Max number of records to return. Between 1 and 100. */
|
|
865
|
-
limit:
|
|
866
|
-
| number
|
|
867
|
-
| undefined;
|
|
855
|
+
limit: number;
|
|
868
856
|
/** The group user state to list. */
|
|
869
|
-
state:
|
|
870
|
-
| number
|
|
871
|
-
| undefined;
|
|
857
|
+
state: number;
|
|
872
858
|
/** An optional previous id for page. */
|
|
873
859
|
before: number;
|
|
874
860
|
/** An optional next id for page. */
|
|
@@ -1827,10 +1813,10 @@ export interface EventManagement {
|
|
|
1827
1813
|
clan_id: string;
|
|
1828
1814
|
channel_voice_id: string;
|
|
1829
1815
|
address: string;
|
|
1830
|
-
|
|
1831
|
-
|
|
1816
|
+
start_time_seconds: number;
|
|
1817
|
+
end_time_seconds: number;
|
|
1832
1818
|
user_ids: string[];
|
|
1833
|
-
|
|
1819
|
+
create_time_seconds: number;
|
|
1834
1820
|
max_permission: number;
|
|
1835
1821
|
channel_id: string;
|
|
1836
1822
|
event_status: number;
|
|
@@ -3825,6 +3811,10 @@ export interface MessageRefList {
|
|
|
3825
3811
|
refs: MessageRef[];
|
|
3826
3812
|
}
|
|
3827
3813
|
|
|
3814
|
+
export interface MessageReactionList {
|
|
3815
|
+
reactions: MessageReaction[];
|
|
3816
|
+
}
|
|
3817
|
+
|
|
3828
3818
|
export interface ListClanBadgeCountRequest {
|
|
3829
3819
|
clan_id: string;
|
|
3830
3820
|
}
|
|
@@ -5009,8 +4999,6 @@ function createBaseChannelMessage(): ChannelMessage {
|
|
|
5009
4999
|
username: "",
|
|
5010
5000
|
avatar: "",
|
|
5011
5001
|
content: "",
|
|
5012
|
-
create_time: undefined,
|
|
5013
|
-
update_time: undefined,
|
|
5014
5002
|
channel_label: "",
|
|
5015
5003
|
clan_logo: "",
|
|
5016
5004
|
category_name: "",
|
|
@@ -5057,62 +5045,56 @@ export const ChannelMessage = {
|
|
|
5057
5045
|
if (message.content !== "") {
|
|
5058
5046
|
writer.uint32(66).string(message.content);
|
|
5059
5047
|
}
|
|
5060
|
-
if (message.create_time !== undefined) {
|
|
5061
|
-
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(74).fork()).ldelim();
|
|
5062
|
-
}
|
|
5063
|
-
if (message.update_time !== undefined) {
|
|
5064
|
-
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(82).fork()).ldelim();
|
|
5065
|
-
}
|
|
5066
5048
|
if (message.channel_label !== "") {
|
|
5067
|
-
writer.uint32(
|
|
5049
|
+
writer.uint32(74).string(message.channel_label);
|
|
5068
5050
|
}
|
|
5069
5051
|
if (message.clan_logo !== "") {
|
|
5070
|
-
writer.uint32(
|
|
5052
|
+
writer.uint32(82).string(message.clan_logo);
|
|
5071
5053
|
}
|
|
5072
5054
|
if (message.category_name !== "") {
|
|
5073
|
-
writer.uint32(
|
|
5055
|
+
writer.uint32(90).string(message.category_name);
|
|
5074
5056
|
}
|
|
5075
5057
|
if (message.display_name !== "") {
|
|
5076
|
-
writer.uint32(
|
|
5058
|
+
writer.uint32(98).string(message.display_name);
|
|
5077
5059
|
}
|
|
5078
5060
|
if (message.clan_nick !== "") {
|
|
5079
|
-
writer.uint32(
|
|
5061
|
+
writer.uint32(106).string(message.clan_nick);
|
|
5080
5062
|
}
|
|
5081
5063
|
if (message.clan_avatar !== "") {
|
|
5082
|
-
writer.uint32(
|
|
5064
|
+
writer.uint32(114).string(message.clan_avatar);
|
|
5083
5065
|
}
|
|
5084
5066
|
if (message.reactions.length !== 0) {
|
|
5085
|
-
writer.uint32(
|
|
5067
|
+
writer.uint32(122).bytes(message.reactions);
|
|
5086
5068
|
}
|
|
5087
5069
|
if (message.mentions.length !== 0) {
|
|
5088
|
-
writer.uint32(
|
|
5070
|
+
writer.uint32(130).bytes(message.mentions);
|
|
5089
5071
|
}
|
|
5090
5072
|
if (message.attachments.length !== 0) {
|
|
5091
|
-
writer.uint32(
|
|
5073
|
+
writer.uint32(138).bytes(message.attachments);
|
|
5092
5074
|
}
|
|
5093
5075
|
if (message.references.length !== 0) {
|
|
5094
|
-
writer.uint32(
|
|
5076
|
+
writer.uint32(146).bytes(message.references);
|
|
5095
5077
|
}
|
|
5096
5078
|
if (message.referenced_message.length !== 0) {
|
|
5097
|
-
writer.uint32(
|
|
5079
|
+
writer.uint32(154).bytes(message.referenced_message);
|
|
5098
5080
|
}
|
|
5099
5081
|
if (message.create_time_seconds !== 0) {
|
|
5100
|
-
writer.uint32(
|
|
5082
|
+
writer.uint32(160).uint32(message.create_time_seconds);
|
|
5101
5083
|
}
|
|
5102
5084
|
if (message.update_time_seconds !== 0) {
|
|
5103
|
-
writer.uint32(
|
|
5085
|
+
writer.uint32(168).uint32(message.update_time_seconds);
|
|
5104
5086
|
}
|
|
5105
5087
|
if (message.mode !== 0) {
|
|
5106
|
-
writer.uint32(
|
|
5088
|
+
writer.uint32(176).int32(message.mode);
|
|
5107
5089
|
}
|
|
5108
5090
|
if (message.hide_editted !== false) {
|
|
5109
|
-
writer.uint32(
|
|
5091
|
+
writer.uint32(184).bool(message.hide_editted);
|
|
5110
5092
|
}
|
|
5111
5093
|
if (message.is_public !== false) {
|
|
5112
|
-
writer.uint32(
|
|
5094
|
+
writer.uint32(192).bool(message.is_public);
|
|
5113
5095
|
}
|
|
5114
5096
|
if (message.topic_id !== "") {
|
|
5115
|
-
writer.uint32(
|
|
5097
|
+
writer.uint32(202).string(message.topic_id);
|
|
5116
5098
|
}
|
|
5117
5099
|
return writer;
|
|
5118
5100
|
},
|
|
@@ -5185,129 +5167,115 @@ export const ChannelMessage = {
|
|
|
5185
5167
|
break;
|
|
5186
5168
|
}
|
|
5187
5169
|
|
|
5188
|
-
message.
|
|
5170
|
+
message.channel_label = reader.string();
|
|
5189
5171
|
continue;
|
|
5190
5172
|
case 10:
|
|
5191
5173
|
if (tag !== 82) {
|
|
5192
5174
|
break;
|
|
5193
5175
|
}
|
|
5194
5176
|
|
|
5195
|
-
message.
|
|
5177
|
+
message.clan_logo = reader.string();
|
|
5196
5178
|
continue;
|
|
5197
5179
|
case 11:
|
|
5198
5180
|
if (tag !== 90) {
|
|
5199
5181
|
break;
|
|
5200
5182
|
}
|
|
5201
5183
|
|
|
5202
|
-
message.
|
|
5184
|
+
message.category_name = reader.string();
|
|
5203
5185
|
continue;
|
|
5204
5186
|
case 12:
|
|
5205
5187
|
if (tag !== 98) {
|
|
5206
5188
|
break;
|
|
5207
5189
|
}
|
|
5208
5190
|
|
|
5209
|
-
message.
|
|
5191
|
+
message.display_name = reader.string();
|
|
5210
5192
|
continue;
|
|
5211
5193
|
case 13:
|
|
5212
5194
|
if (tag !== 106) {
|
|
5213
5195
|
break;
|
|
5214
5196
|
}
|
|
5215
5197
|
|
|
5216
|
-
message.
|
|
5198
|
+
message.clan_nick = reader.string();
|
|
5217
5199
|
continue;
|
|
5218
5200
|
case 14:
|
|
5219
5201
|
if (tag !== 114) {
|
|
5220
5202
|
break;
|
|
5221
5203
|
}
|
|
5222
5204
|
|
|
5223
|
-
message.
|
|
5205
|
+
message.clan_avatar = reader.string();
|
|
5224
5206
|
continue;
|
|
5225
5207
|
case 15:
|
|
5226
5208
|
if (tag !== 122) {
|
|
5227
5209
|
break;
|
|
5228
5210
|
}
|
|
5229
5211
|
|
|
5230
|
-
message.
|
|
5212
|
+
message.reactions = reader.bytes();
|
|
5231
5213
|
continue;
|
|
5232
5214
|
case 16:
|
|
5233
5215
|
if (tag !== 130) {
|
|
5234
5216
|
break;
|
|
5235
5217
|
}
|
|
5236
5218
|
|
|
5237
|
-
message.
|
|
5219
|
+
message.mentions = reader.bytes();
|
|
5238
5220
|
continue;
|
|
5239
5221
|
case 17:
|
|
5240
5222
|
if (tag !== 138) {
|
|
5241
5223
|
break;
|
|
5242
5224
|
}
|
|
5243
5225
|
|
|
5244
|
-
message.
|
|
5226
|
+
message.attachments = reader.bytes();
|
|
5245
5227
|
continue;
|
|
5246
5228
|
case 18:
|
|
5247
5229
|
if (tag !== 146) {
|
|
5248
5230
|
break;
|
|
5249
5231
|
}
|
|
5250
5232
|
|
|
5251
|
-
message.
|
|
5233
|
+
message.references = reader.bytes();
|
|
5252
5234
|
continue;
|
|
5253
5235
|
case 19:
|
|
5254
5236
|
if (tag !== 154) {
|
|
5255
5237
|
break;
|
|
5256
5238
|
}
|
|
5257
5239
|
|
|
5258
|
-
message.
|
|
5240
|
+
message.referenced_message = reader.bytes();
|
|
5259
5241
|
continue;
|
|
5260
5242
|
case 20:
|
|
5261
|
-
if (tag !==
|
|
5243
|
+
if (tag !== 160) {
|
|
5262
5244
|
break;
|
|
5263
5245
|
}
|
|
5264
5246
|
|
|
5265
|
-
message.
|
|
5247
|
+
message.create_time_seconds = reader.uint32();
|
|
5266
5248
|
continue;
|
|
5267
5249
|
case 21:
|
|
5268
|
-
if (tag !==
|
|
5250
|
+
if (tag !== 168) {
|
|
5269
5251
|
break;
|
|
5270
5252
|
}
|
|
5271
5253
|
|
|
5272
|
-
message.
|
|
5254
|
+
message.update_time_seconds = reader.uint32();
|
|
5273
5255
|
continue;
|
|
5274
5256
|
case 22:
|
|
5275
5257
|
if (tag !== 176) {
|
|
5276
5258
|
break;
|
|
5277
5259
|
}
|
|
5278
5260
|
|
|
5279
|
-
message.
|
|
5261
|
+
message.mode = reader.int32();
|
|
5280
5262
|
continue;
|
|
5281
5263
|
case 23:
|
|
5282
5264
|
if (tag !== 184) {
|
|
5283
5265
|
break;
|
|
5284
5266
|
}
|
|
5285
5267
|
|
|
5286
|
-
message.
|
|
5268
|
+
message.hide_editted = reader.bool();
|
|
5287
5269
|
continue;
|
|
5288
5270
|
case 24:
|
|
5289
5271
|
if (tag !== 192) {
|
|
5290
5272
|
break;
|
|
5291
5273
|
}
|
|
5292
5274
|
|
|
5293
|
-
message.mode = reader.int32();
|
|
5294
|
-
continue;
|
|
5295
|
-
case 25:
|
|
5296
|
-
if (tag !== 200) {
|
|
5297
|
-
break;
|
|
5298
|
-
}
|
|
5299
|
-
|
|
5300
|
-
message.hide_editted = reader.bool();
|
|
5301
|
-
continue;
|
|
5302
|
-
case 26:
|
|
5303
|
-
if (tag !== 208) {
|
|
5304
|
-
break;
|
|
5305
|
-
}
|
|
5306
|
-
|
|
5307
5275
|
message.is_public = reader.bool();
|
|
5308
5276
|
continue;
|
|
5309
|
-
case
|
|
5310
|
-
if (tag !==
|
|
5277
|
+
case 25:
|
|
5278
|
+
if (tag !== 202) {
|
|
5311
5279
|
break;
|
|
5312
5280
|
}
|
|
5313
5281
|
|
|
@@ -5332,8 +5300,6 @@ export const ChannelMessage = {
|
|
|
5332
5300
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
5333
5301
|
avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
|
|
5334
5302
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
5335
|
-
create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
|
|
5336
|
-
update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
|
|
5337
5303
|
channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
|
|
5338
5304
|
clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
|
|
5339
5305
|
category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
|
|
@@ -5382,12 +5348,6 @@ export const ChannelMessage = {
|
|
|
5382
5348
|
if (message.content !== "") {
|
|
5383
5349
|
obj.content = message.content;
|
|
5384
5350
|
}
|
|
5385
|
-
if (message.create_time !== undefined) {
|
|
5386
|
-
obj.create_time = message.create_time.toISOString();
|
|
5387
|
-
}
|
|
5388
|
-
if (message.update_time !== undefined) {
|
|
5389
|
-
obj.update_time = message.update_time.toISOString();
|
|
5390
|
-
}
|
|
5391
5351
|
if (message.channel_label !== "") {
|
|
5392
5352
|
obj.channel_label = message.channel_label;
|
|
5393
5353
|
}
|
|
@@ -5455,8 +5415,6 @@ export const ChannelMessage = {
|
|
|
5455
5415
|
message.username = object.username ?? "";
|
|
5456
5416
|
message.avatar = object.avatar ?? "";
|
|
5457
5417
|
message.content = object.content ?? "";
|
|
5458
|
-
message.create_time = object.create_time ?? undefined;
|
|
5459
|
-
message.update_time = object.update_time ?? undefined;
|
|
5460
5418
|
message.channel_label = object.channel_label ?? "";
|
|
5461
5419
|
message.clan_logo = object.clan_logo ?? "";
|
|
5462
5420
|
message.category_name = object.category_name ?? "";
|
|
@@ -7976,7 +7934,7 @@ function createBaseChannelAttachment(): ChannelAttachment {
|
|
|
7976
7934
|
filesize: "",
|
|
7977
7935
|
url: "",
|
|
7978
7936
|
uploader: "",
|
|
7979
|
-
|
|
7937
|
+
create_time_seconds: 0,
|
|
7980
7938
|
message_id: "",
|
|
7981
7939
|
width: 0,
|
|
7982
7940
|
height: 0,
|
|
@@ -8003,8 +7961,8 @@ export const ChannelAttachment = {
|
|
|
8003
7961
|
if (message.uploader !== "") {
|
|
8004
7962
|
writer.uint32(50).string(message.uploader);
|
|
8005
7963
|
}
|
|
8006
|
-
if (message.
|
|
8007
|
-
|
|
7964
|
+
if (message.create_time_seconds !== 0) {
|
|
7965
|
+
writer.uint32(56).uint32(message.create_time_seconds);
|
|
8008
7966
|
}
|
|
8009
7967
|
if (message.message_id !== "") {
|
|
8010
7968
|
writer.uint32(66).string(message.message_id);
|
|
@@ -8068,11 +8026,11 @@ export const ChannelAttachment = {
|
|
|
8068
8026
|
message.uploader = reader.string();
|
|
8069
8027
|
continue;
|
|
8070
8028
|
case 7:
|
|
8071
|
-
if (tag !==
|
|
8029
|
+
if (tag !== 56) {
|
|
8072
8030
|
break;
|
|
8073
8031
|
}
|
|
8074
8032
|
|
|
8075
|
-
message.
|
|
8033
|
+
message.create_time_seconds = reader.uint32();
|
|
8076
8034
|
continue;
|
|
8077
8035
|
case 8:
|
|
8078
8036
|
if (tag !== 66) {
|
|
@@ -8112,7 +8070,7 @@ export const ChannelAttachment = {
|
|
|
8112
8070
|
filesize: isSet(object.filesize) ? globalThis.String(object.filesize) : "",
|
|
8113
8071
|
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
8114
8072
|
uploader: isSet(object.uploader) ? globalThis.String(object.uploader) : "",
|
|
8115
|
-
|
|
8073
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
8116
8074
|
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
8117
8075
|
width: isSet(object.width) ? globalThis.Number(object.width) : 0,
|
|
8118
8076
|
height: isSet(object.height) ? globalThis.Number(object.height) : 0,
|
|
@@ -8139,8 +8097,8 @@ export const ChannelAttachment = {
|
|
|
8139
8097
|
if (message.uploader !== "") {
|
|
8140
8098
|
obj.uploader = message.uploader;
|
|
8141
8099
|
}
|
|
8142
|
-
if (message.
|
|
8143
|
-
obj.
|
|
8100
|
+
if (message.create_time_seconds !== 0) {
|
|
8101
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
8144
8102
|
}
|
|
8145
8103
|
if (message.message_id !== "") {
|
|
8146
8104
|
obj.message_id = message.message_id;
|
|
@@ -8165,7 +8123,7 @@ export const ChannelAttachment = {
|
|
|
8165
8123
|
message.filesize = object.filesize ?? "";
|
|
8166
8124
|
message.url = object.url ?? "";
|
|
8167
8125
|
message.uploader = object.uploader ?? "";
|
|
8168
|
-
message.
|
|
8126
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
8169
8127
|
message.message_id = object.message_id ?? "";
|
|
8170
8128
|
message.width = object.width ?? 0;
|
|
8171
8129
|
message.height = object.height ?? 0;
|
|
@@ -9233,16 +9191,7 @@ export const ListChannelUsersRequest = {
|
|
|
9233
9191
|
};
|
|
9234
9192
|
|
|
9235
9193
|
function createBaseListChannelAttachmentRequest(): ListChannelAttachmentRequest {
|
|
9236
|
-
return {
|
|
9237
|
-
clan_id: "",
|
|
9238
|
-
channel_id: "",
|
|
9239
|
-
file_type: "",
|
|
9240
|
-
limit: undefined,
|
|
9241
|
-
state: undefined,
|
|
9242
|
-
before: 0,
|
|
9243
|
-
after: 0,
|
|
9244
|
-
around: 0,
|
|
9245
|
-
};
|
|
9194
|
+
return { clan_id: "", channel_id: "", file_type: "", limit: 0, state: 0, before: 0, after: 0, around: 0 };
|
|
9246
9195
|
}
|
|
9247
9196
|
|
|
9248
9197
|
export const ListChannelAttachmentRequest = {
|
|
@@ -9256,11 +9205,11 @@ export const ListChannelAttachmentRequest = {
|
|
|
9256
9205
|
if (message.file_type !== "") {
|
|
9257
9206
|
writer.uint32(26).string(message.file_type);
|
|
9258
9207
|
}
|
|
9259
|
-
if (message.limit !==
|
|
9260
|
-
|
|
9208
|
+
if (message.limit !== 0) {
|
|
9209
|
+
writer.uint32(32).int32(message.limit);
|
|
9261
9210
|
}
|
|
9262
|
-
if (message.state !==
|
|
9263
|
-
|
|
9211
|
+
if (message.state !== 0) {
|
|
9212
|
+
writer.uint32(40).int32(message.state);
|
|
9264
9213
|
}
|
|
9265
9214
|
if (message.before !== 0) {
|
|
9266
9215
|
writer.uint32(48).uint32(message.before);
|
|
@@ -9303,18 +9252,18 @@ export const ListChannelAttachmentRequest = {
|
|
|
9303
9252
|
message.file_type = reader.string();
|
|
9304
9253
|
continue;
|
|
9305
9254
|
case 4:
|
|
9306
|
-
if (tag !==
|
|
9255
|
+
if (tag !== 32) {
|
|
9307
9256
|
break;
|
|
9308
9257
|
}
|
|
9309
9258
|
|
|
9310
|
-
message.limit =
|
|
9259
|
+
message.limit = reader.int32();
|
|
9311
9260
|
continue;
|
|
9312
9261
|
case 5:
|
|
9313
|
-
if (tag !==
|
|
9262
|
+
if (tag !== 40) {
|
|
9314
9263
|
break;
|
|
9315
9264
|
}
|
|
9316
9265
|
|
|
9317
|
-
message.state =
|
|
9266
|
+
message.state = reader.int32();
|
|
9318
9267
|
continue;
|
|
9319
9268
|
case 6:
|
|
9320
9269
|
if (tag !== 48) {
|
|
@@ -9351,8 +9300,8 @@ export const ListChannelAttachmentRequest = {
|
|
|
9351
9300
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9352
9301
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
9353
9302
|
file_type: isSet(object.file_type) ? globalThis.String(object.file_type) : "",
|
|
9354
|
-
limit: isSet(object.limit) ? Number(object.limit) :
|
|
9355
|
-
state: isSet(object.state) ? Number(object.state) :
|
|
9303
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
9304
|
+
state: isSet(object.state) ? globalThis.Number(object.state) : 0,
|
|
9356
9305
|
before: isSet(object.before) ? globalThis.Number(object.before) : 0,
|
|
9357
9306
|
after: isSet(object.after) ? globalThis.Number(object.after) : 0,
|
|
9358
9307
|
around: isSet(object.around) ? globalThis.Number(object.around) : 0,
|
|
@@ -9370,11 +9319,11 @@ export const ListChannelAttachmentRequest = {
|
|
|
9370
9319
|
if (message.file_type !== "") {
|
|
9371
9320
|
obj.file_type = message.file_type;
|
|
9372
9321
|
}
|
|
9373
|
-
if (message.limit !==
|
|
9374
|
-
obj.limit = message.limit;
|
|
9322
|
+
if (message.limit !== 0) {
|
|
9323
|
+
obj.limit = Math.round(message.limit);
|
|
9375
9324
|
}
|
|
9376
|
-
if (message.state !==
|
|
9377
|
-
obj.state = message.state;
|
|
9325
|
+
if (message.state !== 0) {
|
|
9326
|
+
obj.state = Math.round(message.state);
|
|
9378
9327
|
}
|
|
9379
9328
|
if (message.before !== 0) {
|
|
9380
9329
|
obj.before = Math.round(message.before);
|
|
@@ -9396,8 +9345,8 @@ export const ListChannelAttachmentRequest = {
|
|
|
9396
9345
|
message.clan_id = object.clan_id ?? "";
|
|
9397
9346
|
message.channel_id = object.channel_id ?? "";
|
|
9398
9347
|
message.file_type = object.file_type ?? "";
|
|
9399
|
-
message.limit = object.limit ??
|
|
9400
|
-
message.state = object.state ??
|
|
9348
|
+
message.limit = object.limit ?? 0;
|
|
9349
|
+
message.state = object.state ?? 0;
|
|
9401
9350
|
message.before = object.before ?? 0;
|
|
9402
9351
|
message.after = object.after ?? 0;
|
|
9403
9352
|
message.around = object.around ?? 0;
|
|
@@ -17398,10 +17347,10 @@ function createBaseEventManagement(): EventManagement {
|
|
|
17398
17347
|
clan_id: "",
|
|
17399
17348
|
channel_voice_id: "",
|
|
17400
17349
|
address: "",
|
|
17401
|
-
|
|
17402
|
-
|
|
17350
|
+
start_time_seconds: 0,
|
|
17351
|
+
end_time_seconds: 0,
|
|
17403
17352
|
user_ids: [],
|
|
17404
|
-
|
|
17353
|
+
create_time_seconds: 0,
|
|
17405
17354
|
max_permission: 0,
|
|
17406
17355
|
channel_id: "",
|
|
17407
17356
|
event_status: 0,
|
|
@@ -17443,17 +17392,17 @@ export const EventManagement = {
|
|
|
17443
17392
|
if (message.address !== "") {
|
|
17444
17393
|
writer.uint32(82).string(message.address);
|
|
17445
17394
|
}
|
|
17446
|
-
if (message.
|
|
17447
|
-
|
|
17395
|
+
if (message.start_time_seconds !== 0) {
|
|
17396
|
+
writer.uint32(88).uint32(message.start_time_seconds);
|
|
17448
17397
|
}
|
|
17449
|
-
if (message.
|
|
17450
|
-
|
|
17398
|
+
if (message.end_time_seconds !== 0) {
|
|
17399
|
+
writer.uint32(96).uint32(message.end_time_seconds);
|
|
17451
17400
|
}
|
|
17452
17401
|
for (const v of message.user_ids) {
|
|
17453
17402
|
writer.uint32(106).string(v!);
|
|
17454
17403
|
}
|
|
17455
|
-
if (message.
|
|
17456
|
-
|
|
17404
|
+
if (message.create_time_seconds !== 0) {
|
|
17405
|
+
writer.uint32(112).uint32(message.create_time_seconds);
|
|
17457
17406
|
}
|
|
17458
17407
|
if (message.max_permission !== 0) {
|
|
17459
17408
|
writer.uint32(120).int32(message.max_permission);
|
|
@@ -17554,18 +17503,18 @@ export const EventManagement = {
|
|
|
17554
17503
|
message.address = reader.string();
|
|
17555
17504
|
continue;
|
|
17556
17505
|
case 11:
|
|
17557
|
-
if (tag !==
|
|
17506
|
+
if (tag !== 88) {
|
|
17558
17507
|
break;
|
|
17559
17508
|
}
|
|
17560
17509
|
|
|
17561
|
-
message.
|
|
17510
|
+
message.start_time_seconds = reader.uint32();
|
|
17562
17511
|
continue;
|
|
17563
17512
|
case 12:
|
|
17564
|
-
if (tag !==
|
|
17513
|
+
if (tag !== 96) {
|
|
17565
17514
|
break;
|
|
17566
17515
|
}
|
|
17567
17516
|
|
|
17568
|
-
message.
|
|
17517
|
+
message.end_time_seconds = reader.uint32();
|
|
17569
17518
|
continue;
|
|
17570
17519
|
case 13:
|
|
17571
17520
|
if (tag !== 106) {
|
|
@@ -17575,11 +17524,11 @@ export const EventManagement = {
|
|
|
17575
17524
|
message.user_ids.push(reader.string());
|
|
17576
17525
|
continue;
|
|
17577
17526
|
case 14:
|
|
17578
|
-
if (tag !==
|
|
17527
|
+
if (tag !== 112) {
|
|
17579
17528
|
break;
|
|
17580
17529
|
}
|
|
17581
17530
|
|
|
17582
|
-
message.
|
|
17531
|
+
message.create_time_seconds = reader.uint32();
|
|
17583
17532
|
continue;
|
|
17584
17533
|
case 15:
|
|
17585
17534
|
if (tag !== 120) {
|
|
@@ -17644,10 +17593,10 @@ export const EventManagement = {
|
|
|
17644
17593
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
17645
17594
|
channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
|
|
17646
17595
|
address: isSet(object.address) ? globalThis.String(object.address) : "",
|
|
17647
|
-
|
|
17648
|
-
|
|
17596
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
17597
|
+
end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
|
|
17649
17598
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
17650
|
-
|
|
17599
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
17651
17600
|
max_permission: isSet(object.max_permission) ? globalThis.Number(object.max_permission) : 0,
|
|
17652
17601
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
17653
17602
|
event_status: isSet(object.event_status) ? globalThis.Number(object.event_status) : 0,
|
|
@@ -17689,17 +17638,17 @@ export const EventManagement = {
|
|
|
17689
17638
|
if (message.address !== "") {
|
|
17690
17639
|
obj.address = message.address;
|
|
17691
17640
|
}
|
|
17692
|
-
if (message.
|
|
17693
|
-
obj.
|
|
17641
|
+
if (message.start_time_seconds !== 0) {
|
|
17642
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
17694
17643
|
}
|
|
17695
|
-
if (message.
|
|
17696
|
-
obj.
|
|
17644
|
+
if (message.end_time_seconds !== 0) {
|
|
17645
|
+
obj.end_time_seconds = Math.round(message.end_time_seconds);
|
|
17697
17646
|
}
|
|
17698
17647
|
if (message.user_ids?.length) {
|
|
17699
17648
|
obj.user_ids = message.user_ids;
|
|
17700
17649
|
}
|
|
17701
|
-
if (message.
|
|
17702
|
-
obj.
|
|
17650
|
+
if (message.create_time_seconds !== 0) {
|
|
17651
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
17703
17652
|
}
|
|
17704
17653
|
if (message.max_permission !== 0) {
|
|
17705
17654
|
obj.max_permission = Math.round(message.max_permission);
|
|
@@ -17737,10 +17686,10 @@ export const EventManagement = {
|
|
|
17737
17686
|
message.clan_id = object.clan_id ?? "";
|
|
17738
17687
|
message.channel_voice_id = object.channel_voice_id ?? "";
|
|
17739
17688
|
message.address = object.address ?? "";
|
|
17740
|
-
message.
|
|
17741
|
-
message.
|
|
17689
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
17690
|
+
message.end_time_seconds = object.end_time_seconds ?? 0;
|
|
17742
17691
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
17743
|
-
message.
|
|
17692
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
17744
17693
|
message.max_permission = object.max_permission ?? 0;
|
|
17745
17694
|
message.channel_id = object.channel_id ?? "";
|
|
17746
17695
|
message.event_status = object.event_status ?? 0;
|
|
@@ -39657,6 +39606,67 @@ export const MessageRefList = {
|
|
|
39657
39606
|
},
|
|
39658
39607
|
};
|
|
39659
39608
|
|
|
39609
|
+
function createBaseMessageReactionList(): MessageReactionList {
|
|
39610
|
+
return { reactions: [] };
|
|
39611
|
+
}
|
|
39612
|
+
|
|
39613
|
+
export const MessageReactionList = {
|
|
39614
|
+
encode(message: MessageReactionList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
39615
|
+
for (const v of message.reactions) {
|
|
39616
|
+
MessageReaction.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
39617
|
+
}
|
|
39618
|
+
return writer;
|
|
39619
|
+
},
|
|
39620
|
+
|
|
39621
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MessageReactionList {
|
|
39622
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
39623
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
39624
|
+
const message = createBaseMessageReactionList();
|
|
39625
|
+
while (reader.pos < end) {
|
|
39626
|
+
const tag = reader.uint32();
|
|
39627
|
+
switch (tag >>> 3) {
|
|
39628
|
+
case 1:
|
|
39629
|
+
if (tag !== 10) {
|
|
39630
|
+
break;
|
|
39631
|
+
}
|
|
39632
|
+
|
|
39633
|
+
message.reactions.push(MessageReaction.decode(reader, reader.uint32()));
|
|
39634
|
+
continue;
|
|
39635
|
+
}
|
|
39636
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39637
|
+
break;
|
|
39638
|
+
}
|
|
39639
|
+
reader.skipType(tag & 7);
|
|
39640
|
+
}
|
|
39641
|
+
return message;
|
|
39642
|
+
},
|
|
39643
|
+
|
|
39644
|
+
fromJSON(object: any): MessageReactionList {
|
|
39645
|
+
return {
|
|
39646
|
+
reactions: globalThis.Array.isArray(object?.reactions)
|
|
39647
|
+
? object.reactions.map((e: any) => MessageReaction.fromJSON(e))
|
|
39648
|
+
: [],
|
|
39649
|
+
};
|
|
39650
|
+
},
|
|
39651
|
+
|
|
39652
|
+
toJSON(message: MessageReactionList): unknown {
|
|
39653
|
+
const obj: any = {};
|
|
39654
|
+
if (message.reactions?.length) {
|
|
39655
|
+
obj.reactions = message.reactions.map((e) => MessageReaction.toJSON(e));
|
|
39656
|
+
}
|
|
39657
|
+
return obj;
|
|
39658
|
+
},
|
|
39659
|
+
|
|
39660
|
+
create<I extends Exact<DeepPartial<MessageReactionList>, I>>(base?: I): MessageReactionList {
|
|
39661
|
+
return MessageReactionList.fromPartial(base ?? ({} as any));
|
|
39662
|
+
},
|
|
39663
|
+
fromPartial<I extends Exact<DeepPartial<MessageReactionList>, I>>(object: I): MessageReactionList {
|
|
39664
|
+
const message = createBaseMessageReactionList();
|
|
39665
|
+
message.reactions = object.reactions?.map((e) => MessageReaction.fromPartial(e)) || [];
|
|
39666
|
+
return message;
|
|
39667
|
+
},
|
|
39668
|
+
};
|
|
39669
|
+
|
|
39660
39670
|
function createBaseListClanBadgeCountRequest(): ListClanBadgeCountRequest {
|
|
39661
39671
|
return { clan_id: "" };
|
|
39662
39672
|
}
|