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