mezon-js-protobuf 1.8.14 → 1.8.16
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 +2053 -576
- package/dist/mezon-js-protobuf.cjs.js +1101 -128
- package/dist/mezon-js-protobuf.esm.mjs +1101 -128
- package/package.json +1 -1
- package/rtapi/realtime.ts +155 -51
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.16",
|
|
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
|
@@ -23,9 +23,12 @@ import {
|
|
|
23
23
|
DefaultNotificationCategory,
|
|
24
24
|
EmojiListedResponse,
|
|
25
25
|
EmojiRecentList,
|
|
26
|
+
FriendList,
|
|
26
27
|
GiveCoffeeEvent,
|
|
27
28
|
HashtagDmList,
|
|
28
29
|
HashtagDmListRequest,
|
|
30
|
+
ListChannelAppsRequest,
|
|
31
|
+
ListChannelAppsResponse,
|
|
29
32
|
ListChannelAttachmentRequest,
|
|
30
33
|
ListChannelDescsRequest,
|
|
31
34
|
ListChannelDetailRequest,
|
|
@@ -36,11 +39,13 @@ import {
|
|
|
36
39
|
ListClanWebhookResponse,
|
|
37
40
|
ListFavoriteChannelRequest,
|
|
38
41
|
ListFavoriteChannelResponse,
|
|
42
|
+
ListFriendsRequest,
|
|
39
43
|
ListNotificationsRequest,
|
|
40
44
|
ListPermissionOfUsersRequest,
|
|
41
45
|
ListPermissionsRequest,
|
|
42
46
|
ListRoleUsersRequest,
|
|
43
47
|
ListThreadRequest,
|
|
48
|
+
ListUserActivity,
|
|
44
49
|
MessageAttachment,
|
|
45
50
|
MessageMention,
|
|
46
51
|
MessageReaction,
|
|
@@ -1547,57 +1552,62 @@ export interface DeleteAccountEvent {
|
|
|
1547
1552
|
|
|
1548
1553
|
export interface ListDataSocket {
|
|
1549
1554
|
api_name: string;
|
|
1550
|
-
list_clan_req
|
|
1551
|
-
clan_desc_list
|
|
1552
|
-
list_thread_req
|
|
1553
|
-
channel_desc_list
|
|
1554
|
-
list_channel_users_uc_req
|
|
1555
|
-
channel_users_uc_list
|
|
1556
|
-
list_channel_detail_req
|
|
1557
|
-
channel_desc
|
|
1558
|
-
list_channel_req
|
|
1559
|
-
list_channel_message_req
|
|
1560
|
-
channel_message_list
|
|
1561
|
-
list_channel_users_req
|
|
1562
|
-
voice_user_list
|
|
1563
|
-
channel_user_list
|
|
1564
|
-
list_channel_attachment_req
|
|
1565
|
-
channel_attachment_list
|
|
1566
|
-
hashtag_dm_req
|
|
1567
|
-
hashtag_dm_list
|
|
1568
|
-
channel_setting_req
|
|
1569
|
-
channel_setting_list
|
|
1570
|
-
favorite_channel_req
|
|
1571
|
-
favorite_channel_list
|
|
1572
|
-
search_thread_req
|
|
1573
|
-
notification_channel
|
|
1574
|
-
notificaion_user_channel
|
|
1575
|
-
notification_category
|
|
1576
|
-
notification_clan
|
|
1577
|
-
notification_setting
|
|
1578
|
-
notification_message
|
|
1579
|
-
noti_channel_cat_setting_list
|
|
1580
|
-
list_notification_req
|
|
1581
|
-
notification_list
|
|
1582
|
-
sticker_list
|
|
1583
|
-
emoji_recent_list
|
|
1584
|
-
clan_webhook_req
|
|
1585
|
-
clan_webhook_list
|
|
1586
|
-
webhook_list_req
|
|
1587
|
-
webhook_list
|
|
1588
|
-
permission_list_req
|
|
1589
|
-
permission_list
|
|
1590
|
-
role_user_req
|
|
1591
|
-
role_user_list
|
|
1592
|
-
permission_user_req
|
|
1593
|
-
role_list
|
|
1594
|
-
role_list_event_req
|
|
1595
|
-
role_event_list
|
|
1596
|
-
user_permission_req
|
|
1597
|
-
user_permission_list
|
|
1598
|
-
permission_role_req
|
|
1599
|
-
permission_role_list
|
|
1600
|
-
emoji_list
|
|
1555
|
+
list_clan_req: ListClanDescRequest | undefined;
|
|
1556
|
+
clan_desc_list: ClanDescList | undefined;
|
|
1557
|
+
list_thread_req: ListThreadRequest | undefined;
|
|
1558
|
+
channel_desc_list: ChannelDescList | undefined;
|
|
1559
|
+
list_channel_users_uc_req: AllUsersAddChannelRequest | undefined;
|
|
1560
|
+
channel_users_uc_list: AllUsersAddChannelResponse | undefined;
|
|
1561
|
+
list_channel_detail_req: ListChannelDetailRequest | undefined;
|
|
1562
|
+
channel_desc: ChannelDescription1 | undefined;
|
|
1563
|
+
list_channel_req: ListChannelDescsRequest | undefined;
|
|
1564
|
+
list_channel_message_req: ListChannelMessagesRequest | undefined;
|
|
1565
|
+
channel_message_list: ChannelMessageList | undefined;
|
|
1566
|
+
list_channel_users_req: ListChannelUsersRequest | undefined;
|
|
1567
|
+
voice_user_list: VoiceChannelUserList | undefined;
|
|
1568
|
+
channel_user_list: ChannelUserList | undefined;
|
|
1569
|
+
list_channel_attachment_req: ListChannelAttachmentRequest | undefined;
|
|
1570
|
+
channel_attachment_list: ChannelAttachmentList | undefined;
|
|
1571
|
+
hashtag_dm_req: HashtagDmListRequest | undefined;
|
|
1572
|
+
hashtag_dm_list: HashtagDmList | undefined;
|
|
1573
|
+
channel_setting_req: ChannelSettingListRequest | undefined;
|
|
1574
|
+
channel_setting_list: ChannelSettingListResponse | undefined;
|
|
1575
|
+
favorite_channel_req: ListFavoriteChannelRequest | undefined;
|
|
1576
|
+
favorite_channel_list: ListFavoriteChannelResponse | undefined;
|
|
1577
|
+
search_thread_req: SearchThreadRequest | undefined;
|
|
1578
|
+
notification_channel: NotificationChannel | undefined;
|
|
1579
|
+
notificaion_user_channel: NotificationUserChannel | undefined;
|
|
1580
|
+
notification_category: DefaultNotificationCategory | undefined;
|
|
1581
|
+
notification_clan: NotificationClan | undefined;
|
|
1582
|
+
notification_setting: NotificationSetting | undefined;
|
|
1583
|
+
notification_message: NotifiReactMessage | undefined;
|
|
1584
|
+
noti_channel_cat_setting_list: NotificationChannelCategorySettingList | undefined;
|
|
1585
|
+
list_notification_req: ListNotificationsRequest | undefined;
|
|
1586
|
+
notification_list: NotificationList | undefined;
|
|
1587
|
+
sticker_list: StickerListedResponse | undefined;
|
|
1588
|
+
emoji_recent_list: EmojiRecentList | undefined;
|
|
1589
|
+
clan_webhook_req: ListClanWebhookRequest | undefined;
|
|
1590
|
+
clan_webhook_list: ListClanWebhookResponse | undefined;
|
|
1591
|
+
webhook_list_req: WebhookListRequest | undefined;
|
|
1592
|
+
webhook_list: WebhookListResponse | undefined;
|
|
1593
|
+
permission_list_req: ListPermissionsRequest | undefined;
|
|
1594
|
+
permission_list: PermissionList | undefined;
|
|
1595
|
+
role_user_req: ListRoleUsersRequest | undefined;
|
|
1596
|
+
role_user_list: RoleUserList | undefined;
|
|
1597
|
+
permission_user_req: ListPermissionOfUsersRequest | undefined;
|
|
1598
|
+
role_list: RoleList | undefined;
|
|
1599
|
+
role_list_event_req: RoleListEventRequest | undefined;
|
|
1600
|
+
role_event_list: RoleListEventResponse | undefined;
|
|
1601
|
+
user_permission_req: UserPermissionInChannelListRequest | undefined;
|
|
1602
|
+
user_permission_list: UserPermissionInChannelListResponse | undefined;
|
|
1603
|
+
permission_role_req: PermissionRoleChannelListEventRequest | undefined;
|
|
1604
|
+
permission_role_list: PermissionRoleChannelListEventResponse | undefined;
|
|
1605
|
+
emoji_list: EmojiListedResponse | undefined;
|
|
1606
|
+
list_friend_req: ListFriendsRequest | undefined;
|
|
1607
|
+
friend_list: FriendList | undefined;
|
|
1608
|
+
list_apps_req: ListChannelAppsRequest | undefined;
|
|
1609
|
+
channel_apps_list: ListChannelAppsResponse | undefined;
|
|
1610
|
+
user_activity_list: ListUserActivity | undefined;
|
|
1601
1611
|
}
|
|
1602
1612
|
|
|
1603
1613
|
function createBaseEnvelope(): Envelope {
|
|
@@ -13415,6 +13425,11 @@ function createBaseListDataSocket(): ListDataSocket {
|
|
|
13415
13425
|
permission_role_req: undefined,
|
|
13416
13426
|
permission_role_list: undefined,
|
|
13417
13427
|
emoji_list: undefined,
|
|
13428
|
+
list_friend_req: undefined,
|
|
13429
|
+
friend_list: undefined,
|
|
13430
|
+
list_apps_req: undefined,
|
|
13431
|
+
channel_apps_list: undefined,
|
|
13432
|
+
user_activity_list: undefined,
|
|
13418
13433
|
};
|
|
13419
13434
|
}
|
|
13420
13435
|
|
|
@@ -13577,6 +13592,21 @@ export const ListDataSocket = {
|
|
|
13577
13592
|
if (message.emoji_list !== undefined) {
|
|
13578
13593
|
EmojiListedResponse.encode(message.emoji_list, writer.uint32(418).fork()).ldelim();
|
|
13579
13594
|
}
|
|
13595
|
+
if (message.list_friend_req !== undefined) {
|
|
13596
|
+
ListFriendsRequest.encode(message.list_friend_req, writer.uint32(426).fork()).ldelim();
|
|
13597
|
+
}
|
|
13598
|
+
if (message.friend_list !== undefined) {
|
|
13599
|
+
FriendList.encode(message.friend_list, writer.uint32(434).fork()).ldelim();
|
|
13600
|
+
}
|
|
13601
|
+
if (message.list_apps_req !== undefined) {
|
|
13602
|
+
ListChannelAppsRequest.encode(message.list_apps_req, writer.uint32(442).fork()).ldelim();
|
|
13603
|
+
}
|
|
13604
|
+
if (message.channel_apps_list !== undefined) {
|
|
13605
|
+
ListChannelAppsResponse.encode(message.channel_apps_list, writer.uint32(450).fork()).ldelim();
|
|
13606
|
+
}
|
|
13607
|
+
if (message.user_activity_list !== undefined) {
|
|
13608
|
+
ListUserActivity.encode(message.user_activity_list, writer.uint32(458).fork()).ldelim();
|
|
13609
|
+
}
|
|
13580
13610
|
return writer;
|
|
13581
13611
|
},
|
|
13582
13612
|
|
|
@@ -13954,6 +13984,41 @@ export const ListDataSocket = {
|
|
|
13954
13984
|
|
|
13955
13985
|
message.emoji_list = EmojiListedResponse.decode(reader, reader.uint32());
|
|
13956
13986
|
continue;
|
|
13987
|
+
case 53:
|
|
13988
|
+
if (tag !== 426) {
|
|
13989
|
+
break;
|
|
13990
|
+
}
|
|
13991
|
+
|
|
13992
|
+
message.list_friend_req = ListFriendsRequest.decode(reader, reader.uint32());
|
|
13993
|
+
continue;
|
|
13994
|
+
case 54:
|
|
13995
|
+
if (tag !== 434) {
|
|
13996
|
+
break;
|
|
13997
|
+
}
|
|
13998
|
+
|
|
13999
|
+
message.friend_list = FriendList.decode(reader, reader.uint32());
|
|
14000
|
+
continue;
|
|
14001
|
+
case 55:
|
|
14002
|
+
if (tag !== 442) {
|
|
14003
|
+
break;
|
|
14004
|
+
}
|
|
14005
|
+
|
|
14006
|
+
message.list_apps_req = ListChannelAppsRequest.decode(reader, reader.uint32());
|
|
14007
|
+
continue;
|
|
14008
|
+
case 56:
|
|
14009
|
+
if (tag !== 450) {
|
|
14010
|
+
break;
|
|
14011
|
+
}
|
|
14012
|
+
|
|
14013
|
+
message.channel_apps_list = ListChannelAppsResponse.decode(reader, reader.uint32());
|
|
14014
|
+
continue;
|
|
14015
|
+
case 57:
|
|
14016
|
+
if (tag !== 458) {
|
|
14017
|
+
break;
|
|
14018
|
+
}
|
|
14019
|
+
|
|
14020
|
+
message.user_activity_list = ListUserActivity.decode(reader, reader.uint32());
|
|
14021
|
+
continue;
|
|
13957
14022
|
}
|
|
13958
14023
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13959
14024
|
break;
|
|
@@ -14093,6 +14158,15 @@ export const ListDataSocket = {
|
|
|
14093
14158
|
? PermissionRoleChannelListEventResponse.fromJSON(object.permission_role_list)
|
|
14094
14159
|
: undefined,
|
|
14095
14160
|
emoji_list: isSet(object.emoji_list) ? EmojiListedResponse.fromJSON(object.emoji_list) : undefined,
|
|
14161
|
+
list_friend_req: isSet(object.list_friend_req) ? ListFriendsRequest.fromJSON(object.list_friend_req) : undefined,
|
|
14162
|
+
friend_list: isSet(object.friend_list) ? FriendList.fromJSON(object.friend_list) : undefined,
|
|
14163
|
+
list_apps_req: isSet(object.list_apps_req) ? ListChannelAppsRequest.fromJSON(object.list_apps_req) : undefined,
|
|
14164
|
+
channel_apps_list: isSet(object.channel_apps_list)
|
|
14165
|
+
? ListChannelAppsResponse.fromJSON(object.channel_apps_list)
|
|
14166
|
+
: undefined,
|
|
14167
|
+
user_activity_list: isSet(object.user_activity_list)
|
|
14168
|
+
? ListUserActivity.fromJSON(object.user_activity_list)
|
|
14169
|
+
: undefined,
|
|
14096
14170
|
};
|
|
14097
14171
|
},
|
|
14098
14172
|
|
|
@@ -14256,6 +14330,21 @@ export const ListDataSocket = {
|
|
|
14256
14330
|
if (message.emoji_list !== undefined) {
|
|
14257
14331
|
obj.emoji_list = EmojiListedResponse.toJSON(message.emoji_list);
|
|
14258
14332
|
}
|
|
14333
|
+
if (message.list_friend_req !== undefined) {
|
|
14334
|
+
obj.list_friend_req = ListFriendsRequest.toJSON(message.list_friend_req);
|
|
14335
|
+
}
|
|
14336
|
+
if (message.friend_list !== undefined) {
|
|
14337
|
+
obj.friend_list = FriendList.toJSON(message.friend_list);
|
|
14338
|
+
}
|
|
14339
|
+
if (message.list_apps_req !== undefined) {
|
|
14340
|
+
obj.list_apps_req = ListChannelAppsRequest.toJSON(message.list_apps_req);
|
|
14341
|
+
}
|
|
14342
|
+
if (message.channel_apps_list !== undefined) {
|
|
14343
|
+
obj.channel_apps_list = ListChannelAppsResponse.toJSON(message.channel_apps_list);
|
|
14344
|
+
}
|
|
14345
|
+
if (message.user_activity_list !== undefined) {
|
|
14346
|
+
obj.user_activity_list = ListUserActivity.toJSON(message.user_activity_list);
|
|
14347
|
+
}
|
|
14259
14348
|
return obj;
|
|
14260
14349
|
},
|
|
14261
14350
|
|
|
@@ -14430,6 +14519,21 @@ export const ListDataSocket = {
|
|
|
14430
14519
|
message.emoji_list = (object.emoji_list !== undefined && object.emoji_list !== null)
|
|
14431
14520
|
? EmojiListedResponse.fromPartial(object.emoji_list)
|
|
14432
14521
|
: undefined;
|
|
14522
|
+
message.list_friend_req = (object.list_friend_req !== undefined && object.list_friend_req !== null)
|
|
14523
|
+
? ListFriendsRequest.fromPartial(object.list_friend_req)
|
|
14524
|
+
: undefined;
|
|
14525
|
+
message.friend_list = (object.friend_list !== undefined && object.friend_list !== null)
|
|
14526
|
+
? FriendList.fromPartial(object.friend_list)
|
|
14527
|
+
: undefined;
|
|
14528
|
+
message.list_apps_req = (object.list_apps_req !== undefined && object.list_apps_req !== null)
|
|
14529
|
+
? ListChannelAppsRequest.fromPartial(object.list_apps_req)
|
|
14530
|
+
: undefined;
|
|
14531
|
+
message.channel_apps_list = (object.channel_apps_list !== undefined && object.channel_apps_list !== null)
|
|
14532
|
+
? ListChannelAppsResponse.fromPartial(object.channel_apps_list)
|
|
14533
|
+
: undefined;
|
|
14534
|
+
message.user_activity_list = (object.user_activity_list !== undefined && object.user_activity_list !== null)
|
|
14535
|
+
? ListUserActivity.fromPartial(object.user_activity_list)
|
|
14536
|
+
: undefined;
|
|
14433
14537
|
return message;
|
|
14434
14538
|
},
|
|
14435
14539
|
};
|