mezon-js-protobuf 1.8.15 → 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 +2002 -525
- 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 +104 -0
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,
|
|
@@ -1598,6 +1603,11 @@ export interface ListDataSocket {
|
|
|
1598
1603
|
permission_role_req: PermissionRoleChannelListEventRequest | undefined;
|
|
1599
1604
|
permission_role_list: PermissionRoleChannelListEventResponse | undefined;
|
|
1600
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
|
};
|