mezon-js-protobuf 1.8.21 → 1.8.22
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/mezon-js-protobuf/rtapi/realtime.d.ts +525 -509
- package/dist/mezon-js-protobuf.cjs.js +85 -33
- package/dist/mezon-js-protobuf.esm.mjs +85 -33
- package/package.json +1 -1
- package/rtapi/realtime.ts +101 -33
|
@@ -14199,6 +14199,7 @@ function createBaseEnvelope() {
|
|
|
14199
14199
|
dropdown_box_selected: void 0,
|
|
14200
14200
|
incoming_call_push: void 0,
|
|
14201
14201
|
sd_topic_event: void 0,
|
|
14202
|
+
follow_event: void 0,
|
|
14202
14203
|
channel_app_event: void 0,
|
|
14203
14204
|
user_status_event: void 0,
|
|
14204
14205
|
remove_friend: void 0,
|
|
@@ -14418,56 +14419,59 @@ var Envelope = {
|
|
|
14418
14419
|
if (message.sd_topic_event !== void 0) {
|
|
14419
14420
|
SdTopicEvent.encode(message.sd_topic_event, writer.uint32(530).fork()).ldelim();
|
|
14420
14421
|
}
|
|
14422
|
+
if (message.follow_event !== void 0) {
|
|
14423
|
+
FollowEvent.encode(message.follow_event, writer.uint32(538).fork()).ldelim();
|
|
14424
|
+
}
|
|
14421
14425
|
if (message.channel_app_event !== void 0) {
|
|
14422
|
-
ChannelAppEvent.encode(message.channel_app_event, writer.uint32(
|
|
14426
|
+
ChannelAppEvent.encode(message.channel_app_event, writer.uint32(546).fork()).ldelim();
|
|
14423
14427
|
}
|
|
14424
14428
|
if (message.user_status_event !== void 0) {
|
|
14425
|
-
UserStatusEvent.encode(message.user_status_event, writer.uint32(
|
|
14429
|
+
UserStatusEvent.encode(message.user_status_event, writer.uint32(554).fork()).ldelim();
|
|
14426
14430
|
}
|
|
14427
14431
|
if (message.remove_friend !== void 0) {
|
|
14428
|
-
RemoveFriend.encode(message.remove_friend, writer.uint32(
|
|
14432
|
+
RemoveFriend.encode(message.remove_friend, writer.uint32(562).fork()).ldelim();
|
|
14429
14433
|
}
|
|
14430
14434
|
if (message.webhook_event !== void 0) {
|
|
14431
|
-
Webhook.encode(message.webhook_event, writer.uint32(
|
|
14435
|
+
Webhook.encode(message.webhook_event, writer.uint32(570).fork()).ldelim();
|
|
14432
14436
|
}
|
|
14433
14437
|
if (message.noti_user_channel !== void 0) {
|
|
14434
|
-
NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(
|
|
14438
|
+
NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
|
|
14435
14439
|
}
|
|
14436
14440
|
if (message.join_channel_app_data !== void 0) {
|
|
14437
|
-
JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(
|
|
14441
|
+
JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(586).fork()).ldelim();
|
|
14438
14442
|
}
|
|
14439
14443
|
if (message.canvas_event !== void 0) {
|
|
14440
|
-
ChannelCanvas.encode(message.canvas_event, writer.uint32(
|
|
14444
|
+
ChannelCanvas.encode(message.canvas_event, writer.uint32(594).fork()).ldelim();
|
|
14441
14445
|
}
|
|
14442
14446
|
if (message.unpin_message_event !== void 0) {
|
|
14443
|
-
UnpinMessageEvent.encode(message.unpin_message_event, writer.uint32(
|
|
14447
|
+
UnpinMessageEvent.encode(message.unpin_message_event, writer.uint32(602).fork()).ldelim();
|
|
14444
14448
|
}
|
|
14445
14449
|
if (message.category_event !== void 0) {
|
|
14446
|
-
CategoryEvent.encode(message.category_event, writer.uint32(
|
|
14450
|
+
CategoryEvent.encode(message.category_event, writer.uint32(610).fork()).ldelim();
|
|
14447
14451
|
}
|
|
14448
14452
|
if (message.handle_participant_meet_state_event !== void 0) {
|
|
14449
|
-
HandleParticipantMeetStateEvent.encode(message.handle_participant_meet_state_event, writer.uint32(
|
|
14453
|
+
HandleParticipantMeetStateEvent.encode(message.handle_participant_meet_state_event, writer.uint32(618).fork()).ldelim();
|
|
14450
14454
|
}
|
|
14451
14455
|
if (message.delete_account_event !== void 0) {
|
|
14452
|
-
DeleteAccountEvent.encode(message.delete_account_event, writer.uint32(
|
|
14456
|
+
DeleteAccountEvent.encode(message.delete_account_event, writer.uint32(626).fork()).ldelim();
|
|
14453
14457
|
}
|
|
14454
14458
|
if (message.ephemeral_message_send !== void 0) {
|
|
14455
|
-
EphemeralMessageSend.encode(message.ephemeral_message_send, writer.uint32(
|
|
14459
|
+
EphemeralMessageSend.encode(message.ephemeral_message_send, writer.uint32(634).fork()).ldelim();
|
|
14456
14460
|
}
|
|
14457
14461
|
if (message.block_friend !== void 0) {
|
|
14458
|
-
BlockFriend.encode(message.block_friend, writer.uint32(
|
|
14462
|
+
BlockFriend.encode(message.block_friend, writer.uint32(642).fork()).ldelim();
|
|
14459
14463
|
}
|
|
14460
14464
|
if (message.voice_reaction_send !== void 0) {
|
|
14461
|
-
VoiceReactionSend.encode(message.voice_reaction_send, writer.uint32(
|
|
14465
|
+
VoiceReactionSend.encode(message.voice_reaction_send, writer.uint32(650).fork()).ldelim();
|
|
14462
14466
|
}
|
|
14463
14467
|
if (message.mark_as_read !== void 0) {
|
|
14464
|
-
MarkAsRead.encode(message.mark_as_read, writer.uint32(
|
|
14468
|
+
MarkAsRead.encode(message.mark_as_read, writer.uint32(658).fork()).ldelim();
|
|
14465
14469
|
}
|
|
14466
14470
|
if (message.list_data_socket !== void 0) {
|
|
14467
|
-
ListDataSocket.encode(message.list_data_socket, writer.uint32(
|
|
14471
|
+
ListDataSocket.encode(message.list_data_socket, writer.uint32(666).fork()).ldelim();
|
|
14468
14472
|
}
|
|
14469
14473
|
if (message.quick_menu_event !== void 0) {
|
|
14470
|
-
QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(
|
|
14474
|
+
QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(674).fork()).ldelim();
|
|
14471
14475
|
}
|
|
14472
14476
|
return writer;
|
|
14473
14477
|
},
|
|
@@ -14878,102 +14882,108 @@ var Envelope = {
|
|
|
14878
14882
|
if (tag !== 538) {
|
|
14879
14883
|
break;
|
|
14880
14884
|
}
|
|
14881
|
-
message.
|
|
14885
|
+
message.follow_event = FollowEvent.decode(reader, reader.uint32());
|
|
14882
14886
|
continue;
|
|
14883
14887
|
case 68:
|
|
14884
14888
|
if (tag !== 546) {
|
|
14885
14889
|
break;
|
|
14886
14890
|
}
|
|
14887
|
-
message.
|
|
14891
|
+
message.channel_app_event = ChannelAppEvent.decode(reader, reader.uint32());
|
|
14888
14892
|
continue;
|
|
14889
14893
|
case 69:
|
|
14890
14894
|
if (tag !== 554) {
|
|
14891
14895
|
break;
|
|
14892
14896
|
}
|
|
14893
|
-
message.
|
|
14897
|
+
message.user_status_event = UserStatusEvent.decode(reader, reader.uint32());
|
|
14894
14898
|
continue;
|
|
14895
14899
|
case 70:
|
|
14896
14900
|
if (tag !== 562) {
|
|
14897
14901
|
break;
|
|
14898
14902
|
}
|
|
14899
|
-
message.
|
|
14903
|
+
message.remove_friend = RemoveFriend.decode(reader, reader.uint32());
|
|
14900
14904
|
continue;
|
|
14901
14905
|
case 71:
|
|
14902
14906
|
if (tag !== 570) {
|
|
14903
14907
|
break;
|
|
14904
14908
|
}
|
|
14905
|
-
message.
|
|
14909
|
+
message.webhook_event = Webhook.decode(reader, reader.uint32());
|
|
14906
14910
|
continue;
|
|
14907
14911
|
case 72:
|
|
14908
14912
|
if (tag !== 578) {
|
|
14909
14913
|
break;
|
|
14910
14914
|
}
|
|
14911
|
-
message.
|
|
14915
|
+
message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
|
|
14912
14916
|
continue;
|
|
14913
14917
|
case 73:
|
|
14914
14918
|
if (tag !== 586) {
|
|
14915
14919
|
break;
|
|
14916
14920
|
}
|
|
14917
|
-
message.
|
|
14921
|
+
message.join_channel_app_data = JoinChannelAppData.decode(reader, reader.uint32());
|
|
14918
14922
|
continue;
|
|
14919
14923
|
case 74:
|
|
14920
14924
|
if (tag !== 594) {
|
|
14921
14925
|
break;
|
|
14922
14926
|
}
|
|
14923
|
-
message.
|
|
14927
|
+
message.canvas_event = ChannelCanvas.decode(reader, reader.uint32());
|
|
14924
14928
|
continue;
|
|
14925
14929
|
case 75:
|
|
14926
14930
|
if (tag !== 602) {
|
|
14927
14931
|
break;
|
|
14928
14932
|
}
|
|
14929
|
-
message.
|
|
14933
|
+
message.unpin_message_event = UnpinMessageEvent.decode(reader, reader.uint32());
|
|
14930
14934
|
continue;
|
|
14931
14935
|
case 76:
|
|
14932
14936
|
if (tag !== 610) {
|
|
14933
14937
|
break;
|
|
14934
14938
|
}
|
|
14935
|
-
message.
|
|
14939
|
+
message.category_event = CategoryEvent.decode(reader, reader.uint32());
|
|
14936
14940
|
continue;
|
|
14937
14941
|
case 77:
|
|
14938
14942
|
if (tag !== 618) {
|
|
14939
14943
|
break;
|
|
14940
14944
|
}
|
|
14941
|
-
message.
|
|
14945
|
+
message.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.decode(reader, reader.uint32());
|
|
14942
14946
|
continue;
|
|
14943
14947
|
case 78:
|
|
14944
14948
|
if (tag !== 626) {
|
|
14945
14949
|
break;
|
|
14946
14950
|
}
|
|
14947
|
-
message.
|
|
14951
|
+
message.delete_account_event = DeleteAccountEvent.decode(reader, reader.uint32());
|
|
14948
14952
|
continue;
|
|
14949
14953
|
case 79:
|
|
14950
14954
|
if (tag !== 634) {
|
|
14951
14955
|
break;
|
|
14952
14956
|
}
|
|
14953
|
-
message.
|
|
14957
|
+
message.ephemeral_message_send = EphemeralMessageSend.decode(reader, reader.uint32());
|
|
14954
14958
|
continue;
|
|
14955
14959
|
case 80:
|
|
14956
14960
|
if (tag !== 642) {
|
|
14957
14961
|
break;
|
|
14958
14962
|
}
|
|
14959
|
-
message.
|
|
14963
|
+
message.block_friend = BlockFriend.decode(reader, reader.uint32());
|
|
14960
14964
|
continue;
|
|
14961
14965
|
case 81:
|
|
14962
14966
|
if (tag !== 650) {
|
|
14963
14967
|
break;
|
|
14964
14968
|
}
|
|
14965
|
-
message.
|
|
14969
|
+
message.voice_reaction_send = VoiceReactionSend.decode(reader, reader.uint32());
|
|
14966
14970
|
continue;
|
|
14967
14971
|
case 82:
|
|
14968
14972
|
if (tag !== 658) {
|
|
14969
14973
|
break;
|
|
14970
14974
|
}
|
|
14971
|
-
message.
|
|
14975
|
+
message.mark_as_read = MarkAsRead.decode(reader, reader.uint32());
|
|
14972
14976
|
continue;
|
|
14973
14977
|
case 83:
|
|
14974
14978
|
if (tag !== 666) {
|
|
14975
14979
|
break;
|
|
14976
14980
|
}
|
|
14981
|
+
message.list_data_socket = ListDataSocket.decode(reader, reader.uint32());
|
|
14982
|
+
continue;
|
|
14983
|
+
case 84:
|
|
14984
|
+
if (tag !== 674) {
|
|
14985
|
+
break;
|
|
14986
|
+
}
|
|
14977
14987
|
message.quick_menu_event = QuickMenuDataEvent.decode(reader, reader.uint32());
|
|
14978
14988
|
continue;
|
|
14979
14989
|
}
|
|
@@ -15052,6 +15062,7 @@ var Envelope = {
|
|
|
15052
15062
|
dropdown_box_selected: isSet4(object.dropdown_box_selected) ? DropdownBoxSelected.fromJSON(object.dropdown_box_selected) : void 0,
|
|
15053
15063
|
incoming_call_push: isSet4(object.incoming_call_push) ? IncomingCallPush.fromJSON(object.incoming_call_push) : void 0,
|
|
15054
15064
|
sd_topic_event: isSet4(object.sd_topic_event) ? SdTopicEvent.fromJSON(object.sd_topic_event) : void 0,
|
|
15065
|
+
follow_event: isSet4(object.follow_event) ? FollowEvent.fromJSON(object.follow_event) : void 0,
|
|
15055
15066
|
channel_app_event: isSet4(object.channel_app_event) ? ChannelAppEvent.fromJSON(object.channel_app_event) : void 0,
|
|
15056
15067
|
user_status_event: isSet4(object.user_status_event) ? UserStatusEvent.fromJSON(object.user_status_event) : void 0,
|
|
15057
15068
|
remove_friend: isSet4(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : void 0,
|
|
@@ -15271,6 +15282,9 @@ var Envelope = {
|
|
|
15271
15282
|
if (message.sd_topic_event !== void 0) {
|
|
15272
15283
|
obj.sd_topic_event = SdTopicEvent.toJSON(message.sd_topic_event);
|
|
15273
15284
|
}
|
|
15285
|
+
if (message.follow_event !== void 0) {
|
|
15286
|
+
obj.follow_event = FollowEvent.toJSON(message.follow_event);
|
|
15287
|
+
}
|
|
15274
15288
|
if (message.channel_app_event !== void 0) {
|
|
15275
15289
|
obj.channel_app_event = ChannelAppEvent.toJSON(message.channel_app_event);
|
|
15276
15290
|
}
|
|
@@ -15398,6 +15412,7 @@ var Envelope = {
|
|
|
15398
15412
|
message.dropdown_box_selected = object.dropdown_box_selected !== void 0 && object.dropdown_box_selected !== null ? DropdownBoxSelected.fromPartial(object.dropdown_box_selected) : void 0;
|
|
15399
15413
|
message.incoming_call_push = object.incoming_call_push !== void 0 && object.incoming_call_push !== null ? IncomingCallPush.fromPartial(object.incoming_call_push) : void 0;
|
|
15400
15414
|
message.sd_topic_event = object.sd_topic_event !== void 0 && object.sd_topic_event !== null ? SdTopicEvent.fromPartial(object.sd_topic_event) : void 0;
|
|
15415
|
+
message.follow_event = object.follow_event !== void 0 && object.follow_event !== null ? FollowEvent.fromPartial(object.follow_event) : void 0;
|
|
15401
15416
|
message.channel_app_event = object.channel_app_event !== void 0 && object.channel_app_event !== null ? ChannelAppEvent.fromPartial(object.channel_app_event) : void 0;
|
|
15402
15417
|
message.user_status_event = object.user_status_event !== void 0 && object.user_status_event !== null ? UserStatusEvent.fromPartial(object.user_status_event) : void 0;
|
|
15403
15418
|
message.remove_friend = object.remove_friend !== void 0 && object.remove_friend !== null ? RemoveFriend.fromPartial(object.remove_friend) : void 0;
|
|
@@ -15418,6 +15433,43 @@ var Envelope = {
|
|
|
15418
15433
|
return message;
|
|
15419
15434
|
}
|
|
15420
15435
|
};
|
|
15436
|
+
function createBaseFollowEvent() {
|
|
15437
|
+
return {};
|
|
15438
|
+
}
|
|
15439
|
+
var FollowEvent = {
|
|
15440
|
+
encode(_, writer = import_minimal5.default.Writer.create()) {
|
|
15441
|
+
return writer;
|
|
15442
|
+
},
|
|
15443
|
+
decode(input, length) {
|
|
15444
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
15445
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
15446
|
+
const message = createBaseFollowEvent();
|
|
15447
|
+
while (reader.pos < end) {
|
|
15448
|
+
const tag = reader.uint32();
|
|
15449
|
+
switch (tag >>> 3) {
|
|
15450
|
+
}
|
|
15451
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15452
|
+
break;
|
|
15453
|
+
}
|
|
15454
|
+
reader.skipType(tag & 7);
|
|
15455
|
+
}
|
|
15456
|
+
return message;
|
|
15457
|
+
},
|
|
15458
|
+
fromJSON(_) {
|
|
15459
|
+
return {};
|
|
15460
|
+
},
|
|
15461
|
+
toJSON(_) {
|
|
15462
|
+
const obj = {};
|
|
15463
|
+
return obj;
|
|
15464
|
+
},
|
|
15465
|
+
create(base) {
|
|
15466
|
+
return FollowEvent.fromPartial(base != null ? base : {});
|
|
15467
|
+
},
|
|
15468
|
+
fromPartial(_) {
|
|
15469
|
+
const message = createBaseFollowEvent();
|
|
15470
|
+
return message;
|
|
15471
|
+
}
|
|
15472
|
+
};
|
|
15421
15473
|
function createBaseChannelCanvas() {
|
|
15422
15474
|
return {
|
|
15423
15475
|
id: "",
|
|
@@ -14186,6 +14186,7 @@ function createBaseEnvelope() {
|
|
|
14186
14186
|
dropdown_box_selected: void 0,
|
|
14187
14187
|
incoming_call_push: void 0,
|
|
14188
14188
|
sd_topic_event: void 0,
|
|
14189
|
+
follow_event: void 0,
|
|
14189
14190
|
channel_app_event: void 0,
|
|
14190
14191
|
user_status_event: void 0,
|
|
14191
14192
|
remove_friend: void 0,
|
|
@@ -14405,56 +14406,59 @@ var Envelope = {
|
|
|
14405
14406
|
if (message.sd_topic_event !== void 0) {
|
|
14406
14407
|
SdTopicEvent.encode(message.sd_topic_event, writer.uint32(530).fork()).ldelim();
|
|
14407
14408
|
}
|
|
14409
|
+
if (message.follow_event !== void 0) {
|
|
14410
|
+
FollowEvent.encode(message.follow_event, writer.uint32(538).fork()).ldelim();
|
|
14411
|
+
}
|
|
14408
14412
|
if (message.channel_app_event !== void 0) {
|
|
14409
|
-
ChannelAppEvent.encode(message.channel_app_event, writer.uint32(
|
|
14413
|
+
ChannelAppEvent.encode(message.channel_app_event, writer.uint32(546).fork()).ldelim();
|
|
14410
14414
|
}
|
|
14411
14415
|
if (message.user_status_event !== void 0) {
|
|
14412
|
-
UserStatusEvent.encode(message.user_status_event, writer.uint32(
|
|
14416
|
+
UserStatusEvent.encode(message.user_status_event, writer.uint32(554).fork()).ldelim();
|
|
14413
14417
|
}
|
|
14414
14418
|
if (message.remove_friend !== void 0) {
|
|
14415
|
-
RemoveFriend.encode(message.remove_friend, writer.uint32(
|
|
14419
|
+
RemoveFriend.encode(message.remove_friend, writer.uint32(562).fork()).ldelim();
|
|
14416
14420
|
}
|
|
14417
14421
|
if (message.webhook_event !== void 0) {
|
|
14418
|
-
Webhook.encode(message.webhook_event, writer.uint32(
|
|
14422
|
+
Webhook.encode(message.webhook_event, writer.uint32(570).fork()).ldelim();
|
|
14419
14423
|
}
|
|
14420
14424
|
if (message.noti_user_channel !== void 0) {
|
|
14421
|
-
NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(
|
|
14425
|
+
NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
|
|
14422
14426
|
}
|
|
14423
14427
|
if (message.join_channel_app_data !== void 0) {
|
|
14424
|
-
JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(
|
|
14428
|
+
JoinChannelAppData.encode(message.join_channel_app_data, writer.uint32(586).fork()).ldelim();
|
|
14425
14429
|
}
|
|
14426
14430
|
if (message.canvas_event !== void 0) {
|
|
14427
|
-
ChannelCanvas.encode(message.canvas_event, writer.uint32(
|
|
14431
|
+
ChannelCanvas.encode(message.canvas_event, writer.uint32(594).fork()).ldelim();
|
|
14428
14432
|
}
|
|
14429
14433
|
if (message.unpin_message_event !== void 0) {
|
|
14430
|
-
UnpinMessageEvent.encode(message.unpin_message_event, writer.uint32(
|
|
14434
|
+
UnpinMessageEvent.encode(message.unpin_message_event, writer.uint32(602).fork()).ldelim();
|
|
14431
14435
|
}
|
|
14432
14436
|
if (message.category_event !== void 0) {
|
|
14433
|
-
CategoryEvent.encode(message.category_event, writer.uint32(
|
|
14437
|
+
CategoryEvent.encode(message.category_event, writer.uint32(610).fork()).ldelim();
|
|
14434
14438
|
}
|
|
14435
14439
|
if (message.handle_participant_meet_state_event !== void 0) {
|
|
14436
|
-
HandleParticipantMeetStateEvent.encode(message.handle_participant_meet_state_event, writer.uint32(
|
|
14440
|
+
HandleParticipantMeetStateEvent.encode(message.handle_participant_meet_state_event, writer.uint32(618).fork()).ldelim();
|
|
14437
14441
|
}
|
|
14438
14442
|
if (message.delete_account_event !== void 0) {
|
|
14439
|
-
DeleteAccountEvent.encode(message.delete_account_event, writer.uint32(
|
|
14443
|
+
DeleteAccountEvent.encode(message.delete_account_event, writer.uint32(626).fork()).ldelim();
|
|
14440
14444
|
}
|
|
14441
14445
|
if (message.ephemeral_message_send !== void 0) {
|
|
14442
|
-
EphemeralMessageSend.encode(message.ephemeral_message_send, writer.uint32(
|
|
14446
|
+
EphemeralMessageSend.encode(message.ephemeral_message_send, writer.uint32(634).fork()).ldelim();
|
|
14443
14447
|
}
|
|
14444
14448
|
if (message.block_friend !== void 0) {
|
|
14445
|
-
BlockFriend.encode(message.block_friend, writer.uint32(
|
|
14449
|
+
BlockFriend.encode(message.block_friend, writer.uint32(642).fork()).ldelim();
|
|
14446
14450
|
}
|
|
14447
14451
|
if (message.voice_reaction_send !== void 0) {
|
|
14448
|
-
VoiceReactionSend.encode(message.voice_reaction_send, writer.uint32(
|
|
14452
|
+
VoiceReactionSend.encode(message.voice_reaction_send, writer.uint32(650).fork()).ldelim();
|
|
14449
14453
|
}
|
|
14450
14454
|
if (message.mark_as_read !== void 0) {
|
|
14451
|
-
MarkAsRead.encode(message.mark_as_read, writer.uint32(
|
|
14455
|
+
MarkAsRead.encode(message.mark_as_read, writer.uint32(658).fork()).ldelim();
|
|
14452
14456
|
}
|
|
14453
14457
|
if (message.list_data_socket !== void 0) {
|
|
14454
|
-
ListDataSocket.encode(message.list_data_socket, writer.uint32(
|
|
14458
|
+
ListDataSocket.encode(message.list_data_socket, writer.uint32(666).fork()).ldelim();
|
|
14455
14459
|
}
|
|
14456
14460
|
if (message.quick_menu_event !== void 0) {
|
|
14457
|
-
QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(
|
|
14461
|
+
QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(674).fork()).ldelim();
|
|
14458
14462
|
}
|
|
14459
14463
|
return writer;
|
|
14460
14464
|
},
|
|
@@ -14865,102 +14869,108 @@ var Envelope = {
|
|
|
14865
14869
|
if (tag !== 538) {
|
|
14866
14870
|
break;
|
|
14867
14871
|
}
|
|
14868
|
-
message.
|
|
14872
|
+
message.follow_event = FollowEvent.decode(reader, reader.uint32());
|
|
14869
14873
|
continue;
|
|
14870
14874
|
case 68:
|
|
14871
14875
|
if (tag !== 546) {
|
|
14872
14876
|
break;
|
|
14873
14877
|
}
|
|
14874
|
-
message.
|
|
14878
|
+
message.channel_app_event = ChannelAppEvent.decode(reader, reader.uint32());
|
|
14875
14879
|
continue;
|
|
14876
14880
|
case 69:
|
|
14877
14881
|
if (tag !== 554) {
|
|
14878
14882
|
break;
|
|
14879
14883
|
}
|
|
14880
|
-
message.
|
|
14884
|
+
message.user_status_event = UserStatusEvent.decode(reader, reader.uint32());
|
|
14881
14885
|
continue;
|
|
14882
14886
|
case 70:
|
|
14883
14887
|
if (tag !== 562) {
|
|
14884
14888
|
break;
|
|
14885
14889
|
}
|
|
14886
|
-
message.
|
|
14890
|
+
message.remove_friend = RemoveFriend.decode(reader, reader.uint32());
|
|
14887
14891
|
continue;
|
|
14888
14892
|
case 71:
|
|
14889
14893
|
if (tag !== 570) {
|
|
14890
14894
|
break;
|
|
14891
14895
|
}
|
|
14892
|
-
message.
|
|
14896
|
+
message.webhook_event = Webhook.decode(reader, reader.uint32());
|
|
14893
14897
|
continue;
|
|
14894
14898
|
case 72:
|
|
14895
14899
|
if (tag !== 578) {
|
|
14896
14900
|
break;
|
|
14897
14901
|
}
|
|
14898
|
-
message.
|
|
14902
|
+
message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
|
|
14899
14903
|
continue;
|
|
14900
14904
|
case 73:
|
|
14901
14905
|
if (tag !== 586) {
|
|
14902
14906
|
break;
|
|
14903
14907
|
}
|
|
14904
|
-
message.
|
|
14908
|
+
message.join_channel_app_data = JoinChannelAppData.decode(reader, reader.uint32());
|
|
14905
14909
|
continue;
|
|
14906
14910
|
case 74:
|
|
14907
14911
|
if (tag !== 594) {
|
|
14908
14912
|
break;
|
|
14909
14913
|
}
|
|
14910
|
-
message.
|
|
14914
|
+
message.canvas_event = ChannelCanvas.decode(reader, reader.uint32());
|
|
14911
14915
|
continue;
|
|
14912
14916
|
case 75:
|
|
14913
14917
|
if (tag !== 602) {
|
|
14914
14918
|
break;
|
|
14915
14919
|
}
|
|
14916
|
-
message.
|
|
14920
|
+
message.unpin_message_event = UnpinMessageEvent.decode(reader, reader.uint32());
|
|
14917
14921
|
continue;
|
|
14918
14922
|
case 76:
|
|
14919
14923
|
if (tag !== 610) {
|
|
14920
14924
|
break;
|
|
14921
14925
|
}
|
|
14922
|
-
message.
|
|
14926
|
+
message.category_event = CategoryEvent.decode(reader, reader.uint32());
|
|
14923
14927
|
continue;
|
|
14924
14928
|
case 77:
|
|
14925
14929
|
if (tag !== 618) {
|
|
14926
14930
|
break;
|
|
14927
14931
|
}
|
|
14928
|
-
message.
|
|
14932
|
+
message.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.decode(reader, reader.uint32());
|
|
14929
14933
|
continue;
|
|
14930
14934
|
case 78:
|
|
14931
14935
|
if (tag !== 626) {
|
|
14932
14936
|
break;
|
|
14933
14937
|
}
|
|
14934
|
-
message.
|
|
14938
|
+
message.delete_account_event = DeleteAccountEvent.decode(reader, reader.uint32());
|
|
14935
14939
|
continue;
|
|
14936
14940
|
case 79:
|
|
14937
14941
|
if (tag !== 634) {
|
|
14938
14942
|
break;
|
|
14939
14943
|
}
|
|
14940
|
-
message.
|
|
14944
|
+
message.ephemeral_message_send = EphemeralMessageSend.decode(reader, reader.uint32());
|
|
14941
14945
|
continue;
|
|
14942
14946
|
case 80:
|
|
14943
14947
|
if (tag !== 642) {
|
|
14944
14948
|
break;
|
|
14945
14949
|
}
|
|
14946
|
-
message.
|
|
14950
|
+
message.block_friend = BlockFriend.decode(reader, reader.uint32());
|
|
14947
14951
|
continue;
|
|
14948
14952
|
case 81:
|
|
14949
14953
|
if (tag !== 650) {
|
|
14950
14954
|
break;
|
|
14951
14955
|
}
|
|
14952
|
-
message.
|
|
14956
|
+
message.voice_reaction_send = VoiceReactionSend.decode(reader, reader.uint32());
|
|
14953
14957
|
continue;
|
|
14954
14958
|
case 82:
|
|
14955
14959
|
if (tag !== 658) {
|
|
14956
14960
|
break;
|
|
14957
14961
|
}
|
|
14958
|
-
message.
|
|
14962
|
+
message.mark_as_read = MarkAsRead.decode(reader, reader.uint32());
|
|
14959
14963
|
continue;
|
|
14960
14964
|
case 83:
|
|
14961
14965
|
if (tag !== 666) {
|
|
14962
14966
|
break;
|
|
14963
14967
|
}
|
|
14968
|
+
message.list_data_socket = ListDataSocket.decode(reader, reader.uint32());
|
|
14969
|
+
continue;
|
|
14970
|
+
case 84:
|
|
14971
|
+
if (tag !== 674) {
|
|
14972
|
+
break;
|
|
14973
|
+
}
|
|
14964
14974
|
message.quick_menu_event = QuickMenuDataEvent.decode(reader, reader.uint32());
|
|
14965
14975
|
continue;
|
|
14966
14976
|
}
|
|
@@ -15039,6 +15049,7 @@ var Envelope = {
|
|
|
15039
15049
|
dropdown_box_selected: isSet4(object.dropdown_box_selected) ? DropdownBoxSelected.fromJSON(object.dropdown_box_selected) : void 0,
|
|
15040
15050
|
incoming_call_push: isSet4(object.incoming_call_push) ? IncomingCallPush.fromJSON(object.incoming_call_push) : void 0,
|
|
15041
15051
|
sd_topic_event: isSet4(object.sd_topic_event) ? SdTopicEvent.fromJSON(object.sd_topic_event) : void 0,
|
|
15052
|
+
follow_event: isSet4(object.follow_event) ? FollowEvent.fromJSON(object.follow_event) : void 0,
|
|
15042
15053
|
channel_app_event: isSet4(object.channel_app_event) ? ChannelAppEvent.fromJSON(object.channel_app_event) : void 0,
|
|
15043
15054
|
user_status_event: isSet4(object.user_status_event) ? UserStatusEvent.fromJSON(object.user_status_event) : void 0,
|
|
15044
15055
|
remove_friend: isSet4(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : void 0,
|
|
@@ -15258,6 +15269,9 @@ var Envelope = {
|
|
|
15258
15269
|
if (message.sd_topic_event !== void 0) {
|
|
15259
15270
|
obj.sd_topic_event = SdTopicEvent.toJSON(message.sd_topic_event);
|
|
15260
15271
|
}
|
|
15272
|
+
if (message.follow_event !== void 0) {
|
|
15273
|
+
obj.follow_event = FollowEvent.toJSON(message.follow_event);
|
|
15274
|
+
}
|
|
15261
15275
|
if (message.channel_app_event !== void 0) {
|
|
15262
15276
|
obj.channel_app_event = ChannelAppEvent.toJSON(message.channel_app_event);
|
|
15263
15277
|
}
|
|
@@ -15385,6 +15399,7 @@ var Envelope = {
|
|
|
15385
15399
|
message.dropdown_box_selected = object.dropdown_box_selected !== void 0 && object.dropdown_box_selected !== null ? DropdownBoxSelected.fromPartial(object.dropdown_box_selected) : void 0;
|
|
15386
15400
|
message.incoming_call_push = object.incoming_call_push !== void 0 && object.incoming_call_push !== null ? IncomingCallPush.fromPartial(object.incoming_call_push) : void 0;
|
|
15387
15401
|
message.sd_topic_event = object.sd_topic_event !== void 0 && object.sd_topic_event !== null ? SdTopicEvent.fromPartial(object.sd_topic_event) : void 0;
|
|
15402
|
+
message.follow_event = object.follow_event !== void 0 && object.follow_event !== null ? FollowEvent.fromPartial(object.follow_event) : void 0;
|
|
15388
15403
|
message.channel_app_event = object.channel_app_event !== void 0 && object.channel_app_event !== null ? ChannelAppEvent.fromPartial(object.channel_app_event) : void 0;
|
|
15389
15404
|
message.user_status_event = object.user_status_event !== void 0 && object.user_status_event !== null ? UserStatusEvent.fromPartial(object.user_status_event) : void 0;
|
|
15390
15405
|
message.remove_friend = object.remove_friend !== void 0 && object.remove_friend !== null ? RemoveFriend.fromPartial(object.remove_friend) : void 0;
|
|
@@ -15405,6 +15420,43 @@ var Envelope = {
|
|
|
15405
15420
|
return message;
|
|
15406
15421
|
}
|
|
15407
15422
|
};
|
|
15423
|
+
function createBaseFollowEvent() {
|
|
15424
|
+
return {};
|
|
15425
|
+
}
|
|
15426
|
+
var FollowEvent = {
|
|
15427
|
+
encode(_, writer = import_minimal5.default.Writer.create()) {
|
|
15428
|
+
return writer;
|
|
15429
|
+
},
|
|
15430
|
+
decode(input, length) {
|
|
15431
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
15432
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
15433
|
+
const message = createBaseFollowEvent();
|
|
15434
|
+
while (reader.pos < end) {
|
|
15435
|
+
const tag = reader.uint32();
|
|
15436
|
+
switch (tag >>> 3) {
|
|
15437
|
+
}
|
|
15438
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
15439
|
+
break;
|
|
15440
|
+
}
|
|
15441
|
+
reader.skipType(tag & 7);
|
|
15442
|
+
}
|
|
15443
|
+
return message;
|
|
15444
|
+
},
|
|
15445
|
+
fromJSON(_) {
|
|
15446
|
+
return {};
|
|
15447
|
+
},
|
|
15448
|
+
toJSON(_) {
|
|
15449
|
+
const obj = {};
|
|
15450
|
+
return obj;
|
|
15451
|
+
},
|
|
15452
|
+
create(base) {
|
|
15453
|
+
return FollowEvent.fromPartial(base != null ? base : {});
|
|
15454
|
+
},
|
|
15455
|
+
fromPartial(_) {
|
|
15456
|
+
const message = createBaseFollowEvent();
|
|
15457
|
+
return message;
|
|
15458
|
+
}
|
|
15459
|
+
};
|
|
15408
15460
|
function createBaseChannelCanvas() {
|
|
15409
15461
|
return {
|
|
15410
15462
|
id: "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.22",
|
|
4
4
|
"description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
|
|
5
5
|
"main": "dist/mezon-js-protobuf.cjs.js",
|
|
6
6
|
"module": "dist/mezon-js-protobuf.esm.mjs",
|