mezon-js-protobuf 1.8.6 → 1.8.7
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 +38 -38
- package/dist/mezon-js-protobuf/api/api.d.ts +20 -20
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +226 -164
- package/dist/mezon-js-protobuf.cjs.js +98 -2
- package/dist/mezon-js-protobuf.esm.mjs +98 -2
- package/package.json +1 -1
- package/rtapi/realtime.ts +121 -1
|
@@ -6792,7 +6792,8 @@ function createBaseEnvelope() {
|
|
|
6792
6792
|
delete_account_event: void 0,
|
|
6793
6793
|
ephemeral_message_send: void 0,
|
|
6794
6794
|
block_friend: void 0,
|
|
6795
|
-
voice_reaction_send: void 0
|
|
6795
|
+
voice_reaction_send: void 0,
|
|
6796
|
+
mark_as_read: void 0
|
|
6796
6797
|
};
|
|
6797
6798
|
}
|
|
6798
6799
|
var Envelope = {
|
|
@@ -7040,6 +7041,9 @@ var Envelope = {
|
|
|
7040
7041
|
if (message.voice_reaction_send !== void 0) {
|
|
7041
7042
|
VoiceReactionSend.encode(message.voice_reaction_send, writer.uint32(650).fork()).ldelim();
|
|
7042
7043
|
}
|
|
7044
|
+
if (message.mark_as_read !== void 0) {
|
|
7045
|
+
MarkAsRead.encode(message.mark_as_read, writer.uint32(658).fork()).ldelim();
|
|
7046
|
+
}
|
|
7043
7047
|
return writer;
|
|
7044
7048
|
},
|
|
7045
7049
|
decode(input, length) {
|
|
@@ -7535,6 +7539,12 @@ var Envelope = {
|
|
|
7535
7539
|
}
|
|
7536
7540
|
message.voice_reaction_send = VoiceReactionSend.decode(reader, reader.uint32());
|
|
7537
7541
|
continue;
|
|
7542
|
+
case 82:
|
|
7543
|
+
if (tag !== 658) {
|
|
7544
|
+
break;
|
|
7545
|
+
}
|
|
7546
|
+
message.mark_as_read = MarkAsRead.decode(reader, reader.uint32());
|
|
7547
|
+
continue;
|
|
7538
7548
|
}
|
|
7539
7549
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7540
7550
|
break;
|
|
@@ -7625,7 +7635,8 @@ var Envelope = {
|
|
|
7625
7635
|
delete_account_event: isSet4(object.delete_account_event) ? DeleteAccountEvent.fromJSON(object.delete_account_event) : void 0,
|
|
7626
7636
|
ephemeral_message_send: isSet4(object.ephemeral_message_send) ? EphemeralMessageSend.fromJSON(object.ephemeral_message_send) : void 0,
|
|
7627
7637
|
block_friend: isSet4(object.block_friend) ? BlockFriend.fromJSON(object.block_friend) : void 0,
|
|
7628
|
-
voice_reaction_send: isSet4(object.voice_reaction_send) ? VoiceReactionSend.fromJSON(object.voice_reaction_send) : void 0
|
|
7638
|
+
voice_reaction_send: isSet4(object.voice_reaction_send) ? VoiceReactionSend.fromJSON(object.voice_reaction_send) : void 0,
|
|
7639
|
+
mark_as_read: isSet4(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : void 0
|
|
7629
7640
|
};
|
|
7630
7641
|
},
|
|
7631
7642
|
toJSON(message) {
|
|
@@ -7875,6 +7886,9 @@ var Envelope = {
|
|
|
7875
7886
|
if (message.voice_reaction_send !== void 0) {
|
|
7876
7887
|
obj.voice_reaction_send = VoiceReactionSend.toJSON(message.voice_reaction_send);
|
|
7877
7888
|
}
|
|
7889
|
+
if (message.mark_as_read !== void 0) {
|
|
7890
|
+
obj.mark_as_read = MarkAsRead.toJSON(message.mark_as_read);
|
|
7891
|
+
}
|
|
7878
7892
|
return obj;
|
|
7879
7893
|
},
|
|
7880
7894
|
create(base) {
|
|
@@ -7964,6 +7978,7 @@ var Envelope = {
|
|
|
7964
7978
|
message.ephemeral_message_send = object.ephemeral_message_send !== void 0 && object.ephemeral_message_send !== null ? EphemeralMessageSend.fromPartial(object.ephemeral_message_send) : void 0;
|
|
7965
7979
|
message.block_friend = object.block_friend !== void 0 && object.block_friend !== null ? BlockFriend.fromPartial(object.block_friend) : void 0;
|
|
7966
7980
|
message.voice_reaction_send = object.voice_reaction_send !== void 0 && object.voice_reaction_send !== null ? VoiceReactionSend.fromPartial(object.voice_reaction_send) : void 0;
|
|
7981
|
+
message.mark_as_read = object.mark_as_read !== void 0 && object.mark_as_read !== null ? MarkAsRead.fromPartial(object.mark_as_read) : void 0;
|
|
7967
7982
|
return message;
|
|
7968
7983
|
}
|
|
7969
7984
|
};
|
|
@@ -9234,6 +9249,87 @@ var VoiceReactionSend = {
|
|
|
9234
9249
|
return message;
|
|
9235
9250
|
}
|
|
9236
9251
|
};
|
|
9252
|
+
function createBaseMarkAsRead() {
|
|
9253
|
+
return { channel_id: "", category_id: "", clan_id: "" };
|
|
9254
|
+
}
|
|
9255
|
+
var MarkAsRead = {
|
|
9256
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
9257
|
+
if (message.channel_id !== "") {
|
|
9258
|
+
writer.uint32(10).string(message.channel_id);
|
|
9259
|
+
}
|
|
9260
|
+
if (message.category_id !== "") {
|
|
9261
|
+
writer.uint32(18).string(message.category_id);
|
|
9262
|
+
}
|
|
9263
|
+
if (message.clan_id !== "") {
|
|
9264
|
+
writer.uint32(26).string(message.clan_id);
|
|
9265
|
+
}
|
|
9266
|
+
return writer;
|
|
9267
|
+
},
|
|
9268
|
+
decode(input, length) {
|
|
9269
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
9270
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
9271
|
+
const message = createBaseMarkAsRead();
|
|
9272
|
+
while (reader.pos < end) {
|
|
9273
|
+
const tag = reader.uint32();
|
|
9274
|
+
switch (tag >>> 3) {
|
|
9275
|
+
case 1:
|
|
9276
|
+
if (tag !== 10) {
|
|
9277
|
+
break;
|
|
9278
|
+
}
|
|
9279
|
+
message.channel_id = reader.string();
|
|
9280
|
+
continue;
|
|
9281
|
+
case 2:
|
|
9282
|
+
if (tag !== 18) {
|
|
9283
|
+
break;
|
|
9284
|
+
}
|
|
9285
|
+
message.category_id = reader.string();
|
|
9286
|
+
continue;
|
|
9287
|
+
case 3:
|
|
9288
|
+
if (tag !== 26) {
|
|
9289
|
+
break;
|
|
9290
|
+
}
|
|
9291
|
+
message.clan_id = reader.string();
|
|
9292
|
+
continue;
|
|
9293
|
+
}
|
|
9294
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9295
|
+
break;
|
|
9296
|
+
}
|
|
9297
|
+
reader.skipType(tag & 7);
|
|
9298
|
+
}
|
|
9299
|
+
return message;
|
|
9300
|
+
},
|
|
9301
|
+
fromJSON(object) {
|
|
9302
|
+
return {
|
|
9303
|
+
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
9304
|
+
category_id: isSet4(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
9305
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
9306
|
+
};
|
|
9307
|
+
},
|
|
9308
|
+
toJSON(message) {
|
|
9309
|
+
const obj = {};
|
|
9310
|
+
if (message.channel_id !== "") {
|
|
9311
|
+
obj.channel_id = message.channel_id;
|
|
9312
|
+
}
|
|
9313
|
+
if (message.category_id !== "") {
|
|
9314
|
+
obj.category_id = message.category_id;
|
|
9315
|
+
}
|
|
9316
|
+
if (message.clan_id !== "") {
|
|
9317
|
+
obj.clan_id = message.clan_id;
|
|
9318
|
+
}
|
|
9319
|
+
return obj;
|
|
9320
|
+
},
|
|
9321
|
+
create(base) {
|
|
9322
|
+
return MarkAsRead.fromPartial(base != null ? base : {});
|
|
9323
|
+
},
|
|
9324
|
+
fromPartial(object) {
|
|
9325
|
+
var _a, _b, _c;
|
|
9326
|
+
const message = createBaseMarkAsRead();
|
|
9327
|
+
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
9328
|
+
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
9329
|
+
message.clan_id = (_c = object.clan_id) != null ? _c : "";
|
|
9330
|
+
return message;
|
|
9331
|
+
}
|
|
9332
|
+
};
|
|
9237
9333
|
function createBaseChannelMessageSend() {
|
|
9238
9334
|
return {
|
|
9239
9335
|
clan_id: "",
|
|
@@ -6779,7 +6779,8 @@ function createBaseEnvelope() {
|
|
|
6779
6779
|
delete_account_event: void 0,
|
|
6780
6780
|
ephemeral_message_send: void 0,
|
|
6781
6781
|
block_friend: void 0,
|
|
6782
|
-
voice_reaction_send: void 0
|
|
6782
|
+
voice_reaction_send: void 0,
|
|
6783
|
+
mark_as_read: void 0
|
|
6783
6784
|
};
|
|
6784
6785
|
}
|
|
6785
6786
|
var Envelope = {
|
|
@@ -7027,6 +7028,9 @@ var Envelope = {
|
|
|
7027
7028
|
if (message.voice_reaction_send !== void 0) {
|
|
7028
7029
|
VoiceReactionSend.encode(message.voice_reaction_send, writer.uint32(650).fork()).ldelim();
|
|
7029
7030
|
}
|
|
7031
|
+
if (message.mark_as_read !== void 0) {
|
|
7032
|
+
MarkAsRead.encode(message.mark_as_read, writer.uint32(658).fork()).ldelim();
|
|
7033
|
+
}
|
|
7030
7034
|
return writer;
|
|
7031
7035
|
},
|
|
7032
7036
|
decode(input, length) {
|
|
@@ -7522,6 +7526,12 @@ var Envelope = {
|
|
|
7522
7526
|
}
|
|
7523
7527
|
message.voice_reaction_send = VoiceReactionSend.decode(reader, reader.uint32());
|
|
7524
7528
|
continue;
|
|
7529
|
+
case 82:
|
|
7530
|
+
if (tag !== 658) {
|
|
7531
|
+
break;
|
|
7532
|
+
}
|
|
7533
|
+
message.mark_as_read = MarkAsRead.decode(reader, reader.uint32());
|
|
7534
|
+
continue;
|
|
7525
7535
|
}
|
|
7526
7536
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7527
7537
|
break;
|
|
@@ -7612,7 +7622,8 @@ var Envelope = {
|
|
|
7612
7622
|
delete_account_event: isSet4(object.delete_account_event) ? DeleteAccountEvent.fromJSON(object.delete_account_event) : void 0,
|
|
7613
7623
|
ephemeral_message_send: isSet4(object.ephemeral_message_send) ? EphemeralMessageSend.fromJSON(object.ephemeral_message_send) : void 0,
|
|
7614
7624
|
block_friend: isSet4(object.block_friend) ? BlockFriend.fromJSON(object.block_friend) : void 0,
|
|
7615
|
-
voice_reaction_send: isSet4(object.voice_reaction_send) ? VoiceReactionSend.fromJSON(object.voice_reaction_send) : void 0
|
|
7625
|
+
voice_reaction_send: isSet4(object.voice_reaction_send) ? VoiceReactionSend.fromJSON(object.voice_reaction_send) : void 0,
|
|
7626
|
+
mark_as_read: isSet4(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : void 0
|
|
7616
7627
|
};
|
|
7617
7628
|
},
|
|
7618
7629
|
toJSON(message) {
|
|
@@ -7862,6 +7873,9 @@ var Envelope = {
|
|
|
7862
7873
|
if (message.voice_reaction_send !== void 0) {
|
|
7863
7874
|
obj.voice_reaction_send = VoiceReactionSend.toJSON(message.voice_reaction_send);
|
|
7864
7875
|
}
|
|
7876
|
+
if (message.mark_as_read !== void 0) {
|
|
7877
|
+
obj.mark_as_read = MarkAsRead.toJSON(message.mark_as_read);
|
|
7878
|
+
}
|
|
7865
7879
|
return obj;
|
|
7866
7880
|
},
|
|
7867
7881
|
create(base) {
|
|
@@ -7951,6 +7965,7 @@ var Envelope = {
|
|
|
7951
7965
|
message.ephemeral_message_send = object.ephemeral_message_send !== void 0 && object.ephemeral_message_send !== null ? EphemeralMessageSend.fromPartial(object.ephemeral_message_send) : void 0;
|
|
7952
7966
|
message.block_friend = object.block_friend !== void 0 && object.block_friend !== null ? BlockFriend.fromPartial(object.block_friend) : void 0;
|
|
7953
7967
|
message.voice_reaction_send = object.voice_reaction_send !== void 0 && object.voice_reaction_send !== null ? VoiceReactionSend.fromPartial(object.voice_reaction_send) : void 0;
|
|
7968
|
+
message.mark_as_read = object.mark_as_read !== void 0 && object.mark_as_read !== null ? MarkAsRead.fromPartial(object.mark_as_read) : void 0;
|
|
7954
7969
|
return message;
|
|
7955
7970
|
}
|
|
7956
7971
|
};
|
|
@@ -9221,6 +9236,87 @@ var VoiceReactionSend = {
|
|
|
9221
9236
|
return message;
|
|
9222
9237
|
}
|
|
9223
9238
|
};
|
|
9239
|
+
function createBaseMarkAsRead() {
|
|
9240
|
+
return { channel_id: "", category_id: "", clan_id: "" };
|
|
9241
|
+
}
|
|
9242
|
+
var MarkAsRead = {
|
|
9243
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
9244
|
+
if (message.channel_id !== "") {
|
|
9245
|
+
writer.uint32(10).string(message.channel_id);
|
|
9246
|
+
}
|
|
9247
|
+
if (message.category_id !== "") {
|
|
9248
|
+
writer.uint32(18).string(message.category_id);
|
|
9249
|
+
}
|
|
9250
|
+
if (message.clan_id !== "") {
|
|
9251
|
+
writer.uint32(26).string(message.clan_id);
|
|
9252
|
+
}
|
|
9253
|
+
return writer;
|
|
9254
|
+
},
|
|
9255
|
+
decode(input, length) {
|
|
9256
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
9257
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
9258
|
+
const message = createBaseMarkAsRead();
|
|
9259
|
+
while (reader.pos < end) {
|
|
9260
|
+
const tag = reader.uint32();
|
|
9261
|
+
switch (tag >>> 3) {
|
|
9262
|
+
case 1:
|
|
9263
|
+
if (tag !== 10) {
|
|
9264
|
+
break;
|
|
9265
|
+
}
|
|
9266
|
+
message.channel_id = reader.string();
|
|
9267
|
+
continue;
|
|
9268
|
+
case 2:
|
|
9269
|
+
if (tag !== 18) {
|
|
9270
|
+
break;
|
|
9271
|
+
}
|
|
9272
|
+
message.category_id = reader.string();
|
|
9273
|
+
continue;
|
|
9274
|
+
case 3:
|
|
9275
|
+
if (tag !== 26) {
|
|
9276
|
+
break;
|
|
9277
|
+
}
|
|
9278
|
+
message.clan_id = reader.string();
|
|
9279
|
+
continue;
|
|
9280
|
+
}
|
|
9281
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9282
|
+
break;
|
|
9283
|
+
}
|
|
9284
|
+
reader.skipType(tag & 7);
|
|
9285
|
+
}
|
|
9286
|
+
return message;
|
|
9287
|
+
},
|
|
9288
|
+
fromJSON(object) {
|
|
9289
|
+
return {
|
|
9290
|
+
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
9291
|
+
category_id: isSet4(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
9292
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
9293
|
+
};
|
|
9294
|
+
},
|
|
9295
|
+
toJSON(message) {
|
|
9296
|
+
const obj = {};
|
|
9297
|
+
if (message.channel_id !== "") {
|
|
9298
|
+
obj.channel_id = message.channel_id;
|
|
9299
|
+
}
|
|
9300
|
+
if (message.category_id !== "") {
|
|
9301
|
+
obj.category_id = message.category_id;
|
|
9302
|
+
}
|
|
9303
|
+
if (message.clan_id !== "") {
|
|
9304
|
+
obj.clan_id = message.clan_id;
|
|
9305
|
+
}
|
|
9306
|
+
return obj;
|
|
9307
|
+
},
|
|
9308
|
+
create(base) {
|
|
9309
|
+
return MarkAsRead.fromPartial(base != null ? base : {});
|
|
9310
|
+
},
|
|
9311
|
+
fromPartial(object) {
|
|
9312
|
+
var _a, _b, _c;
|
|
9313
|
+
const message = createBaseMarkAsRead();
|
|
9314
|
+
message.channel_id = (_a = object.channel_id) != null ? _a : "";
|
|
9315
|
+
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
9316
|
+
message.clan_id = (_c = object.clan_id) != null ? _c : "";
|
|
9317
|
+
return message;
|
|
9318
|
+
}
|
|
9319
|
+
};
|
|
9224
9320
|
function createBaseChannelMessageSend() {
|
|
9225
9321
|
return {
|
|
9226
9322
|
clan_id: "",
|
package/package.json
CHANGED
package/rtapi/realtime.ts
CHANGED
|
@@ -349,7 +349,11 @@ export interface Envelope {
|
|
|
349
349
|
| BlockFriend
|
|
350
350
|
| undefined;
|
|
351
351
|
/** voice reaction message */
|
|
352
|
-
voice_reaction_send?:
|
|
352
|
+
voice_reaction_send?:
|
|
353
|
+
| VoiceReactionSend
|
|
354
|
+
| undefined;
|
|
355
|
+
/** Mark As Read */
|
|
356
|
+
mark_as_read?: MarkAsRead | undefined;
|
|
353
357
|
}
|
|
354
358
|
|
|
355
359
|
export interface FollowEvent {
|
|
@@ -582,6 +586,15 @@ export interface VoiceReactionSend {
|
|
|
582
586
|
sender_id: string;
|
|
583
587
|
}
|
|
584
588
|
|
|
589
|
+
export interface MarkAsRead {
|
|
590
|
+
/** channel id */
|
|
591
|
+
channel_id: string;
|
|
592
|
+
/** category_id */
|
|
593
|
+
category_id: string;
|
|
594
|
+
/** clan id */
|
|
595
|
+
clan_id: string;
|
|
596
|
+
}
|
|
597
|
+
|
|
585
598
|
/** Send a message to a realtime channel. */
|
|
586
599
|
export interface ChannelMessageSend {
|
|
587
600
|
/** The clan that channel belong to. */
|
|
@@ -1558,6 +1571,7 @@ function createBaseEnvelope(): Envelope {
|
|
|
1558
1571
|
ephemeral_message_send: undefined,
|
|
1559
1572
|
block_friend: undefined,
|
|
1560
1573
|
voice_reaction_send: undefined,
|
|
1574
|
+
mark_as_read: undefined,
|
|
1561
1575
|
};
|
|
1562
1576
|
}
|
|
1563
1577
|
|
|
@@ -1807,6 +1821,9 @@ export const Envelope = {
|
|
|
1807
1821
|
if (message.voice_reaction_send !== undefined) {
|
|
1808
1822
|
VoiceReactionSend.encode(message.voice_reaction_send, writer.uint32(650).fork()).ldelim();
|
|
1809
1823
|
}
|
|
1824
|
+
if (message.mark_as_read !== undefined) {
|
|
1825
|
+
MarkAsRead.encode(message.mark_as_read, writer.uint32(658).fork()).ldelim();
|
|
1826
|
+
}
|
|
1810
1827
|
return writer;
|
|
1811
1828
|
},
|
|
1812
1829
|
|
|
@@ -2384,6 +2401,13 @@ export const Envelope = {
|
|
|
2384
2401
|
|
|
2385
2402
|
message.voice_reaction_send = VoiceReactionSend.decode(reader, reader.uint32());
|
|
2386
2403
|
continue;
|
|
2404
|
+
case 82:
|
|
2405
|
+
if (tag !== 658) {
|
|
2406
|
+
break;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2409
|
+
message.mark_as_read = MarkAsRead.decode(reader, reader.uint32());
|
|
2410
|
+
continue;
|
|
2387
2411
|
}
|
|
2388
2412
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2389
2413
|
break;
|
|
@@ -2582,6 +2606,7 @@ export const Envelope = {
|
|
|
2582
2606
|
voice_reaction_send: isSet(object.voice_reaction_send)
|
|
2583
2607
|
? VoiceReactionSend.fromJSON(object.voice_reaction_send)
|
|
2584
2608
|
: undefined,
|
|
2609
|
+
mark_as_read: isSet(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : undefined,
|
|
2585
2610
|
};
|
|
2586
2611
|
},
|
|
2587
2612
|
|
|
@@ -2832,6 +2857,9 @@ export const Envelope = {
|
|
|
2832
2857
|
if (message.voice_reaction_send !== undefined) {
|
|
2833
2858
|
obj.voice_reaction_send = VoiceReactionSend.toJSON(message.voice_reaction_send);
|
|
2834
2859
|
}
|
|
2860
|
+
if (message.mark_as_read !== undefined) {
|
|
2861
|
+
obj.mark_as_read = MarkAsRead.toJSON(message.mark_as_read);
|
|
2862
|
+
}
|
|
2835
2863
|
return obj;
|
|
2836
2864
|
},
|
|
2837
2865
|
|
|
@@ -3100,6 +3128,9 @@ export const Envelope = {
|
|
|
3100
3128
|
message.voice_reaction_send = (object.voice_reaction_send !== undefined && object.voice_reaction_send !== null)
|
|
3101
3129
|
? VoiceReactionSend.fromPartial(object.voice_reaction_send)
|
|
3102
3130
|
: undefined;
|
|
3131
|
+
message.mark_as_read = (object.mark_as_read !== undefined && object.mark_as_read !== null)
|
|
3132
|
+
? MarkAsRead.fromPartial(object.mark_as_read)
|
|
3133
|
+
: undefined;
|
|
3103
3134
|
return message;
|
|
3104
3135
|
},
|
|
3105
3136
|
};
|
|
@@ -5222,6 +5253,95 @@ export const VoiceReactionSend = {
|
|
|
5222
5253
|
},
|
|
5223
5254
|
};
|
|
5224
5255
|
|
|
5256
|
+
function createBaseMarkAsRead(): MarkAsRead {
|
|
5257
|
+
return { channel_id: "", category_id: "", clan_id: "" };
|
|
5258
|
+
}
|
|
5259
|
+
|
|
5260
|
+
export const MarkAsRead = {
|
|
5261
|
+
encode(message: MarkAsRead, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
5262
|
+
if (message.channel_id !== "") {
|
|
5263
|
+
writer.uint32(10).string(message.channel_id);
|
|
5264
|
+
}
|
|
5265
|
+
if (message.category_id !== "") {
|
|
5266
|
+
writer.uint32(18).string(message.category_id);
|
|
5267
|
+
}
|
|
5268
|
+
if (message.clan_id !== "") {
|
|
5269
|
+
writer.uint32(26).string(message.clan_id);
|
|
5270
|
+
}
|
|
5271
|
+
return writer;
|
|
5272
|
+
},
|
|
5273
|
+
|
|
5274
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MarkAsRead {
|
|
5275
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
5276
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5277
|
+
const message = createBaseMarkAsRead();
|
|
5278
|
+
while (reader.pos < end) {
|
|
5279
|
+
const tag = reader.uint32();
|
|
5280
|
+
switch (tag >>> 3) {
|
|
5281
|
+
case 1:
|
|
5282
|
+
if (tag !== 10) {
|
|
5283
|
+
break;
|
|
5284
|
+
}
|
|
5285
|
+
|
|
5286
|
+
message.channel_id = reader.string();
|
|
5287
|
+
continue;
|
|
5288
|
+
case 2:
|
|
5289
|
+
if (tag !== 18) {
|
|
5290
|
+
break;
|
|
5291
|
+
}
|
|
5292
|
+
|
|
5293
|
+
message.category_id = reader.string();
|
|
5294
|
+
continue;
|
|
5295
|
+
case 3:
|
|
5296
|
+
if (tag !== 26) {
|
|
5297
|
+
break;
|
|
5298
|
+
}
|
|
5299
|
+
|
|
5300
|
+
message.clan_id = reader.string();
|
|
5301
|
+
continue;
|
|
5302
|
+
}
|
|
5303
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5304
|
+
break;
|
|
5305
|
+
}
|
|
5306
|
+
reader.skipType(tag & 7);
|
|
5307
|
+
}
|
|
5308
|
+
return message;
|
|
5309
|
+
},
|
|
5310
|
+
|
|
5311
|
+
fromJSON(object: any): MarkAsRead {
|
|
5312
|
+
return {
|
|
5313
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
5314
|
+
category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
|
|
5315
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
5316
|
+
};
|
|
5317
|
+
},
|
|
5318
|
+
|
|
5319
|
+
toJSON(message: MarkAsRead): unknown {
|
|
5320
|
+
const obj: any = {};
|
|
5321
|
+
if (message.channel_id !== "") {
|
|
5322
|
+
obj.channel_id = message.channel_id;
|
|
5323
|
+
}
|
|
5324
|
+
if (message.category_id !== "") {
|
|
5325
|
+
obj.category_id = message.category_id;
|
|
5326
|
+
}
|
|
5327
|
+
if (message.clan_id !== "") {
|
|
5328
|
+
obj.clan_id = message.clan_id;
|
|
5329
|
+
}
|
|
5330
|
+
return obj;
|
|
5331
|
+
},
|
|
5332
|
+
|
|
5333
|
+
create<I extends Exact<DeepPartial<MarkAsRead>, I>>(base?: I): MarkAsRead {
|
|
5334
|
+
return MarkAsRead.fromPartial(base ?? ({} as any));
|
|
5335
|
+
},
|
|
5336
|
+
fromPartial<I extends Exact<DeepPartial<MarkAsRead>, I>>(object: I): MarkAsRead {
|
|
5337
|
+
const message = createBaseMarkAsRead();
|
|
5338
|
+
message.channel_id = object.channel_id ?? "";
|
|
5339
|
+
message.category_id = object.category_id ?? "";
|
|
5340
|
+
message.clan_id = object.clan_id ?? "";
|
|
5341
|
+
return message;
|
|
5342
|
+
},
|
|
5343
|
+
};
|
|
5344
|
+
|
|
5225
5345
|
function createBaseChannelMessageSend(): ChannelMessageSend {
|
|
5226
5346
|
return {
|
|
5227
5347
|
clan_id: "",
|