mezon-js-protobuf 1.8.90 → 1.8.92
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 +556 -1004
- package/dist/mezon-js/api/api.d.ts +75 -507
- package/dist/mezon-js-protobuf/api/api.d.ts +75 -507
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +690 -1012
- package/dist/mezon-js-protobuf.cjs.js +232 -612
- package/dist/mezon-js-protobuf.esm.mjs +232 -612
- package/package.json +1 -1
- package/rtapi/realtime.ts +23 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.92",
|
|
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",
|
package/rtapi/realtime.ts
CHANGED
|
@@ -30,8 +30,6 @@ import {
|
|
|
30
30
|
EventList,
|
|
31
31
|
FriendList,
|
|
32
32
|
GiveCoffeeEvent,
|
|
33
|
-
HashtagDmList,
|
|
34
|
-
HashtagDmListRequest,
|
|
35
33
|
ListChannelAppsRequest,
|
|
36
34
|
ListChannelAppsResponse,
|
|
37
35
|
ListChannelAttachmentRequest,
|
|
@@ -1689,9 +1687,13 @@ export interface ListDataSocket {
|
|
|
1689
1687
|
voice_user_list: VoiceChannelUserList | undefined;
|
|
1690
1688
|
channel_user_list: ChannelUserList | undefined;
|
|
1691
1689
|
list_channel_attachment_req: ListChannelAttachmentRequest | undefined;
|
|
1692
|
-
channel_attachment_list:
|
|
1693
|
-
|
|
1694
|
-
|
|
1690
|
+
channel_attachment_list:
|
|
1691
|
+
| ChannelAttachmentList
|
|
1692
|
+
| undefined;
|
|
1693
|
+
/**
|
|
1694
|
+
* api.HashtagDmListRequest hashtag_dm_req = 18;
|
|
1695
|
+
* api.HashtagDmList hashtag_dm_list = 19;
|
|
1696
|
+
*/
|
|
1695
1697
|
channel_setting_req: ChannelSettingListRequest | undefined;
|
|
1696
1698
|
channel_setting_list: ChannelSettingListResponse | undefined;
|
|
1697
1699
|
favorite_channel_req: ListFavoriteChannelRequest | undefined;
|
|
@@ -13653,7 +13655,7 @@ export const PermissionChangedEvent = {
|
|
|
13653
13655
|
};
|
|
13654
13656
|
|
|
13655
13657
|
function createBaseMessageButtonClicked(): MessageButtonClicked {
|
|
13656
|
-
return { message_id: "0", channel_id: "0", button_id: "
|
|
13658
|
+
return { message_id: "0", channel_id: "0", button_id: "", sender_id: "0", user_id: "0", extra_data: "" };
|
|
13657
13659
|
}
|
|
13658
13660
|
|
|
13659
13661
|
export const MessageButtonClicked = {
|
|
@@ -13664,8 +13666,8 @@ export const MessageButtonClicked = {
|
|
|
13664
13666
|
if (message.channel_id !== "0") {
|
|
13665
13667
|
writer.uint32(16).int64(message.channel_id);
|
|
13666
13668
|
}
|
|
13667
|
-
if (message.button_id !== "
|
|
13668
|
-
writer.uint32(
|
|
13669
|
+
if (message.button_id !== "") {
|
|
13670
|
+
writer.uint32(26).string(message.button_id);
|
|
13669
13671
|
}
|
|
13670
13672
|
if (message.sender_id !== "0") {
|
|
13671
13673
|
writer.uint32(32).int64(message.sender_id);
|
|
@@ -13701,11 +13703,11 @@ export const MessageButtonClicked = {
|
|
|
13701
13703
|
message.channel_id = longToString(reader.int64() as Long);
|
|
13702
13704
|
continue;
|
|
13703
13705
|
case 3:
|
|
13704
|
-
if (tag !==
|
|
13706
|
+
if (tag !== 26) {
|
|
13705
13707
|
break;
|
|
13706
13708
|
}
|
|
13707
13709
|
|
|
13708
|
-
message.button_id =
|
|
13710
|
+
message.button_id = reader.string();
|
|
13709
13711
|
continue;
|
|
13710
13712
|
case 4:
|
|
13711
13713
|
if (tag !== 32) {
|
|
@@ -13741,7 +13743,7 @@ export const MessageButtonClicked = {
|
|
|
13741
13743
|
return {
|
|
13742
13744
|
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
13743
13745
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
13744
|
-
button_id: isSet(object.button_id) ? globalThis.String(object.button_id) : "
|
|
13746
|
+
button_id: isSet(object.button_id) ? globalThis.String(object.button_id) : "",
|
|
13745
13747
|
sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "0",
|
|
13746
13748
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "0",
|
|
13747
13749
|
extra_data: isSet(object.extra_data) ? globalThis.String(object.extra_data) : "",
|
|
@@ -13756,7 +13758,7 @@ export const MessageButtonClicked = {
|
|
|
13756
13758
|
if (message.channel_id !== "0") {
|
|
13757
13759
|
obj.channel_id = message.channel_id;
|
|
13758
13760
|
}
|
|
13759
|
-
if (message.button_id !== "
|
|
13761
|
+
if (message.button_id !== "") {
|
|
13760
13762
|
obj.button_id = message.button_id;
|
|
13761
13763
|
}
|
|
13762
13764
|
if (message.sender_id !== "0") {
|
|
@@ -13778,7 +13780,7 @@ export const MessageButtonClicked = {
|
|
|
13778
13780
|
const message = createBaseMessageButtonClicked();
|
|
13779
13781
|
message.message_id = object.message_id ?? "0";
|
|
13780
13782
|
message.channel_id = object.channel_id ?? "0";
|
|
13781
|
-
message.button_id = object.button_id ?? "
|
|
13783
|
+
message.button_id = object.button_id ?? "";
|
|
13782
13784
|
message.sender_id = object.sender_id ?? "0";
|
|
13783
13785
|
message.user_id = object.user_id ?? "0";
|
|
13784
13786
|
message.extra_data = object.extra_data ?? "";
|
|
@@ -13935,7 +13937,7 @@ export const ListActivity = {
|
|
|
13935
13937
|
};
|
|
13936
13938
|
|
|
13937
13939
|
function createBaseDropdownBoxSelected(): DropdownBoxSelected {
|
|
13938
|
-
return { message_id: "0", channel_id: "0", selectbox_id: "
|
|
13940
|
+
return { message_id: "0", channel_id: "0", selectbox_id: "", sender_id: "0", user_id: "0", values: [] };
|
|
13939
13941
|
}
|
|
13940
13942
|
|
|
13941
13943
|
export const DropdownBoxSelected = {
|
|
@@ -13946,8 +13948,8 @@ export const DropdownBoxSelected = {
|
|
|
13946
13948
|
if (message.channel_id !== "0") {
|
|
13947
13949
|
writer.uint32(16).int64(message.channel_id);
|
|
13948
13950
|
}
|
|
13949
|
-
if (message.selectbox_id !== "
|
|
13950
|
-
writer.uint32(
|
|
13951
|
+
if (message.selectbox_id !== "") {
|
|
13952
|
+
writer.uint32(26).string(message.selectbox_id);
|
|
13951
13953
|
}
|
|
13952
13954
|
if (message.sender_id !== "0") {
|
|
13953
13955
|
writer.uint32(32).int64(message.sender_id);
|
|
@@ -13983,11 +13985,11 @@ export const DropdownBoxSelected = {
|
|
|
13983
13985
|
message.channel_id = longToString(reader.int64() as Long);
|
|
13984
13986
|
continue;
|
|
13985
13987
|
case 3:
|
|
13986
|
-
if (tag !==
|
|
13988
|
+
if (tag !== 26) {
|
|
13987
13989
|
break;
|
|
13988
13990
|
}
|
|
13989
13991
|
|
|
13990
|
-
message.selectbox_id =
|
|
13992
|
+
message.selectbox_id = reader.string();
|
|
13991
13993
|
continue;
|
|
13992
13994
|
case 4:
|
|
13993
13995
|
if (tag !== 32) {
|
|
@@ -14023,7 +14025,7 @@ export const DropdownBoxSelected = {
|
|
|
14023
14025
|
return {
|
|
14024
14026
|
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
14025
14027
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
14026
|
-
selectbox_id: isSet(object.selectbox_id) ? globalThis.String(object.selectbox_id) : "
|
|
14028
|
+
selectbox_id: isSet(object.selectbox_id) ? globalThis.String(object.selectbox_id) : "",
|
|
14027
14029
|
sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "0",
|
|
14028
14030
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "0",
|
|
14029
14031
|
values: globalThis.Array.isArray(object?.values) ? object.values.map((e: any) => globalThis.String(e)) : [],
|
|
@@ -14038,7 +14040,7 @@ export const DropdownBoxSelected = {
|
|
|
14038
14040
|
if (message.channel_id !== "0") {
|
|
14039
14041
|
obj.channel_id = message.channel_id;
|
|
14040
14042
|
}
|
|
14041
|
-
if (message.selectbox_id !== "
|
|
14043
|
+
if (message.selectbox_id !== "") {
|
|
14042
14044
|
obj.selectbox_id = message.selectbox_id;
|
|
14043
14045
|
}
|
|
14044
14046
|
if (message.sender_id !== "0") {
|
|
@@ -14060,7 +14062,7 @@ export const DropdownBoxSelected = {
|
|
|
14060
14062
|
const message = createBaseDropdownBoxSelected();
|
|
14061
14063
|
message.message_id = object.message_id ?? "0";
|
|
14062
14064
|
message.channel_id = object.channel_id ?? "0";
|
|
14063
|
-
message.selectbox_id = object.selectbox_id ?? "
|
|
14065
|
+
message.selectbox_id = object.selectbox_id ?? "";
|
|
14064
14066
|
message.sender_id = object.sender_id ?? "0";
|
|
14065
14067
|
message.user_id = object.user_id ?? "0";
|
|
14066
14068
|
message.values = object.values?.map((e) => e) || [];
|
|
@@ -14814,8 +14816,6 @@ function createBaseListDataSocket(): ListDataSocket {
|
|
|
14814
14816
|
channel_user_list: undefined,
|
|
14815
14817
|
list_channel_attachment_req: undefined,
|
|
14816
14818
|
channel_attachment_list: undefined,
|
|
14817
|
-
hashtag_dm_req: undefined,
|
|
14818
|
-
hashtag_dm_list: undefined,
|
|
14819
14819
|
channel_setting_req: undefined,
|
|
14820
14820
|
channel_setting_list: undefined,
|
|
14821
14821
|
favorite_channel_req: undefined,
|
|
@@ -14921,12 +14921,6 @@ export const ListDataSocket = {
|
|
|
14921
14921
|
if (message.channel_attachment_list !== undefined) {
|
|
14922
14922
|
ChannelAttachmentList.encode(message.channel_attachment_list, writer.uint32(138).fork()).ldelim();
|
|
14923
14923
|
}
|
|
14924
|
-
if (message.hashtag_dm_req !== undefined) {
|
|
14925
|
-
HashtagDmListRequest.encode(message.hashtag_dm_req, writer.uint32(146).fork()).ldelim();
|
|
14926
|
-
}
|
|
14927
|
-
if (message.hashtag_dm_list !== undefined) {
|
|
14928
|
-
HashtagDmList.encode(message.hashtag_dm_list, writer.uint32(154).fork()).ldelim();
|
|
14929
|
-
}
|
|
14930
14924
|
if (message.channel_setting_req !== undefined) {
|
|
14931
14925
|
ChannelSettingListRequest.encode(message.channel_setting_req, writer.uint32(162).fork()).ldelim();
|
|
14932
14926
|
}
|
|
@@ -15205,20 +15199,6 @@ export const ListDataSocket = {
|
|
|
15205
15199
|
|
|
15206
15200
|
message.channel_attachment_list = ChannelAttachmentList.decode(reader, reader.uint32());
|
|
15207
15201
|
continue;
|
|
15208
|
-
case 18:
|
|
15209
|
-
if (tag !== 146) {
|
|
15210
|
-
break;
|
|
15211
|
-
}
|
|
15212
|
-
|
|
15213
|
-
message.hashtag_dm_req = HashtagDmListRequest.decode(reader, reader.uint32());
|
|
15214
|
-
continue;
|
|
15215
|
-
case 19:
|
|
15216
|
-
if (tag !== 154) {
|
|
15217
|
-
break;
|
|
15218
|
-
}
|
|
15219
|
-
|
|
15220
|
-
message.hashtag_dm_list = HashtagDmList.decode(reader, reader.uint32());
|
|
15221
|
-
continue;
|
|
15222
15202
|
case 20:
|
|
15223
15203
|
if (tag !== 162) {
|
|
15224
15204
|
break;
|
|
@@ -15617,8 +15597,6 @@ export const ListDataSocket = {
|
|
|
15617
15597
|
channel_attachment_list: isSet(object.channel_attachment_list)
|
|
15618
15598
|
? ChannelAttachmentList.fromJSON(object.channel_attachment_list)
|
|
15619
15599
|
: undefined,
|
|
15620
|
-
hashtag_dm_req: isSet(object.hashtag_dm_req) ? HashtagDmListRequest.fromJSON(object.hashtag_dm_req) : undefined,
|
|
15621
|
-
hashtag_dm_list: isSet(object.hashtag_dm_list) ? HashtagDmList.fromJSON(object.hashtag_dm_list) : undefined,
|
|
15622
15600
|
channel_setting_req: isSet(object.channel_setting_req)
|
|
15623
15601
|
? ChannelSettingListRequest.fromJSON(object.channel_setting_req)
|
|
15624
15602
|
: undefined,
|
|
@@ -15792,12 +15770,6 @@ export const ListDataSocket = {
|
|
|
15792
15770
|
if (message.channel_attachment_list !== undefined) {
|
|
15793
15771
|
obj.channel_attachment_list = ChannelAttachmentList.toJSON(message.channel_attachment_list);
|
|
15794
15772
|
}
|
|
15795
|
-
if (message.hashtag_dm_req !== undefined) {
|
|
15796
|
-
obj.hashtag_dm_req = HashtagDmListRequest.toJSON(message.hashtag_dm_req);
|
|
15797
|
-
}
|
|
15798
|
-
if (message.hashtag_dm_list !== undefined) {
|
|
15799
|
-
obj.hashtag_dm_list = HashtagDmList.toJSON(message.hashtag_dm_list);
|
|
15800
|
-
}
|
|
15801
15773
|
if (message.channel_setting_req !== undefined) {
|
|
15802
15774
|
obj.channel_setting_req = ChannelSettingListRequest.toJSON(message.channel_setting_req);
|
|
15803
15775
|
}
|
|
@@ -16013,12 +15985,6 @@ export const ListDataSocket = {
|
|
|
16013
15985
|
(object.channel_attachment_list !== undefined && object.channel_attachment_list !== null)
|
|
16014
15986
|
? ChannelAttachmentList.fromPartial(object.channel_attachment_list)
|
|
16015
15987
|
: undefined;
|
|
16016
|
-
message.hashtag_dm_req = (object.hashtag_dm_req !== undefined && object.hashtag_dm_req !== null)
|
|
16017
|
-
? HashtagDmListRequest.fromPartial(object.hashtag_dm_req)
|
|
16018
|
-
: undefined;
|
|
16019
|
-
message.hashtag_dm_list = (object.hashtag_dm_list !== undefined && object.hashtag_dm_list !== null)
|
|
16020
|
-
? HashtagDmList.fromPartial(object.hashtag_dm_list)
|
|
16021
|
-
: undefined;
|
|
16022
15988
|
message.channel_setting_req = (object.channel_setting_req !== undefined && object.channel_setting_req !== null)
|
|
16023
15989
|
? ChannelSettingListRequest.fromPartial(object.channel_setting_req)
|
|
16024
15990
|
: undefined;
|