mezon-js-protobuf 1.8.15 → 1.8.17
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 +2013 -525
- package/dist/mezon-js-protobuf.cjs.js +1109 -121
- package/dist/mezon-js-protobuf.esm.mjs +1109 -121
- package/package.json +1 -1
- package/rtapi/realtime.ts +121 -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.17",
|
|
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,
|
|
@@ -1444,6 +1449,7 @@ export interface EventEmoji {
|
|
|
1444
1449
|
user_id: string;
|
|
1445
1450
|
logo: string;
|
|
1446
1451
|
clan_name: string;
|
|
1452
|
+
is_for_sale: boolean;
|
|
1447
1453
|
}
|
|
1448
1454
|
|
|
1449
1455
|
export interface PermissionSetEvent {
|
|
@@ -1598,6 +1604,11 @@ export interface ListDataSocket {
|
|
|
1598
1604
|
permission_role_req: PermissionRoleChannelListEventRequest | undefined;
|
|
1599
1605
|
permission_role_list: PermissionRoleChannelListEventResponse | undefined;
|
|
1600
1606
|
emoji_list: EmojiListedResponse | undefined;
|
|
1607
|
+
list_friend_req: ListFriendsRequest | undefined;
|
|
1608
|
+
friend_list: FriendList | undefined;
|
|
1609
|
+
list_apps_req: ListChannelAppsRequest | undefined;
|
|
1610
|
+
channel_apps_list: ListChannelAppsResponse | undefined;
|
|
1611
|
+
user_activity_list: ListUserActivity | undefined;
|
|
1601
1612
|
}
|
|
1602
1613
|
|
|
1603
1614
|
function createBaseEnvelope(): Envelope {
|
|
@@ -11809,6 +11820,7 @@ function createBaseEventEmoji(): EventEmoji {
|
|
|
11809
11820
|
user_id: "",
|
|
11810
11821
|
logo: "",
|
|
11811
11822
|
clan_name: "",
|
|
11823
|
+
is_for_sale: false,
|
|
11812
11824
|
};
|
|
11813
11825
|
}
|
|
11814
11826
|
|
|
@@ -11841,6 +11853,9 @@ export const EventEmoji = {
|
|
|
11841
11853
|
if (message.clan_name !== "") {
|
|
11842
11854
|
writer.uint32(74).string(message.clan_name);
|
|
11843
11855
|
}
|
|
11856
|
+
if (message.is_for_sale !== false) {
|
|
11857
|
+
writer.uint32(80).bool(message.is_for_sale);
|
|
11858
|
+
}
|
|
11844
11859
|
return writer;
|
|
11845
11860
|
},
|
|
11846
11861
|
|
|
@@ -11914,6 +11929,13 @@ export const EventEmoji = {
|
|
|
11914
11929
|
|
|
11915
11930
|
message.clan_name = reader.string();
|
|
11916
11931
|
continue;
|
|
11932
|
+
case 10:
|
|
11933
|
+
if (tag !== 80) {
|
|
11934
|
+
break;
|
|
11935
|
+
}
|
|
11936
|
+
|
|
11937
|
+
message.is_for_sale = reader.bool();
|
|
11938
|
+
continue;
|
|
11917
11939
|
}
|
|
11918
11940
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11919
11941
|
break;
|
|
@@ -11934,6 +11956,7 @@ export const EventEmoji = {
|
|
|
11934
11956
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
11935
11957
|
logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
|
|
11936
11958
|
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
11959
|
+
is_for_sale: isSet(object.is_for_sale) ? globalThis.Boolean(object.is_for_sale) : false,
|
|
11937
11960
|
};
|
|
11938
11961
|
},
|
|
11939
11962
|
|
|
@@ -11966,6 +11989,9 @@ export const EventEmoji = {
|
|
|
11966
11989
|
if (message.clan_name !== "") {
|
|
11967
11990
|
obj.clan_name = message.clan_name;
|
|
11968
11991
|
}
|
|
11992
|
+
if (message.is_for_sale !== false) {
|
|
11993
|
+
obj.is_for_sale = message.is_for_sale;
|
|
11994
|
+
}
|
|
11969
11995
|
return obj;
|
|
11970
11996
|
},
|
|
11971
11997
|
|
|
@@ -11983,6 +12009,7 @@ export const EventEmoji = {
|
|
|
11983
12009
|
message.user_id = object.user_id ?? "";
|
|
11984
12010
|
message.logo = object.logo ?? "";
|
|
11985
12011
|
message.clan_name = object.clan_name ?? "";
|
|
12012
|
+
message.is_for_sale = object.is_for_sale ?? false;
|
|
11986
12013
|
return message;
|
|
11987
12014
|
},
|
|
11988
12015
|
};
|
|
@@ -13415,6 +13442,11 @@ function createBaseListDataSocket(): ListDataSocket {
|
|
|
13415
13442
|
permission_role_req: undefined,
|
|
13416
13443
|
permission_role_list: undefined,
|
|
13417
13444
|
emoji_list: undefined,
|
|
13445
|
+
list_friend_req: undefined,
|
|
13446
|
+
friend_list: undefined,
|
|
13447
|
+
list_apps_req: undefined,
|
|
13448
|
+
channel_apps_list: undefined,
|
|
13449
|
+
user_activity_list: undefined,
|
|
13418
13450
|
};
|
|
13419
13451
|
}
|
|
13420
13452
|
|
|
@@ -13577,6 +13609,21 @@ export const ListDataSocket = {
|
|
|
13577
13609
|
if (message.emoji_list !== undefined) {
|
|
13578
13610
|
EmojiListedResponse.encode(message.emoji_list, writer.uint32(418).fork()).ldelim();
|
|
13579
13611
|
}
|
|
13612
|
+
if (message.list_friend_req !== undefined) {
|
|
13613
|
+
ListFriendsRequest.encode(message.list_friend_req, writer.uint32(426).fork()).ldelim();
|
|
13614
|
+
}
|
|
13615
|
+
if (message.friend_list !== undefined) {
|
|
13616
|
+
FriendList.encode(message.friend_list, writer.uint32(434).fork()).ldelim();
|
|
13617
|
+
}
|
|
13618
|
+
if (message.list_apps_req !== undefined) {
|
|
13619
|
+
ListChannelAppsRequest.encode(message.list_apps_req, writer.uint32(442).fork()).ldelim();
|
|
13620
|
+
}
|
|
13621
|
+
if (message.channel_apps_list !== undefined) {
|
|
13622
|
+
ListChannelAppsResponse.encode(message.channel_apps_list, writer.uint32(450).fork()).ldelim();
|
|
13623
|
+
}
|
|
13624
|
+
if (message.user_activity_list !== undefined) {
|
|
13625
|
+
ListUserActivity.encode(message.user_activity_list, writer.uint32(458).fork()).ldelim();
|
|
13626
|
+
}
|
|
13580
13627
|
return writer;
|
|
13581
13628
|
},
|
|
13582
13629
|
|
|
@@ -13954,6 +14001,41 @@ export const ListDataSocket = {
|
|
|
13954
14001
|
|
|
13955
14002
|
message.emoji_list = EmojiListedResponse.decode(reader, reader.uint32());
|
|
13956
14003
|
continue;
|
|
14004
|
+
case 53:
|
|
14005
|
+
if (tag !== 426) {
|
|
14006
|
+
break;
|
|
14007
|
+
}
|
|
14008
|
+
|
|
14009
|
+
message.list_friend_req = ListFriendsRequest.decode(reader, reader.uint32());
|
|
14010
|
+
continue;
|
|
14011
|
+
case 54:
|
|
14012
|
+
if (tag !== 434) {
|
|
14013
|
+
break;
|
|
14014
|
+
}
|
|
14015
|
+
|
|
14016
|
+
message.friend_list = FriendList.decode(reader, reader.uint32());
|
|
14017
|
+
continue;
|
|
14018
|
+
case 55:
|
|
14019
|
+
if (tag !== 442) {
|
|
14020
|
+
break;
|
|
14021
|
+
}
|
|
14022
|
+
|
|
14023
|
+
message.list_apps_req = ListChannelAppsRequest.decode(reader, reader.uint32());
|
|
14024
|
+
continue;
|
|
14025
|
+
case 56:
|
|
14026
|
+
if (tag !== 450) {
|
|
14027
|
+
break;
|
|
14028
|
+
}
|
|
14029
|
+
|
|
14030
|
+
message.channel_apps_list = ListChannelAppsResponse.decode(reader, reader.uint32());
|
|
14031
|
+
continue;
|
|
14032
|
+
case 57:
|
|
14033
|
+
if (tag !== 458) {
|
|
14034
|
+
break;
|
|
14035
|
+
}
|
|
14036
|
+
|
|
14037
|
+
message.user_activity_list = ListUserActivity.decode(reader, reader.uint32());
|
|
14038
|
+
continue;
|
|
13957
14039
|
}
|
|
13958
14040
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13959
14041
|
break;
|
|
@@ -14093,6 +14175,15 @@ export const ListDataSocket = {
|
|
|
14093
14175
|
? PermissionRoleChannelListEventResponse.fromJSON(object.permission_role_list)
|
|
14094
14176
|
: undefined,
|
|
14095
14177
|
emoji_list: isSet(object.emoji_list) ? EmojiListedResponse.fromJSON(object.emoji_list) : undefined,
|
|
14178
|
+
list_friend_req: isSet(object.list_friend_req) ? ListFriendsRequest.fromJSON(object.list_friend_req) : undefined,
|
|
14179
|
+
friend_list: isSet(object.friend_list) ? FriendList.fromJSON(object.friend_list) : undefined,
|
|
14180
|
+
list_apps_req: isSet(object.list_apps_req) ? ListChannelAppsRequest.fromJSON(object.list_apps_req) : undefined,
|
|
14181
|
+
channel_apps_list: isSet(object.channel_apps_list)
|
|
14182
|
+
? ListChannelAppsResponse.fromJSON(object.channel_apps_list)
|
|
14183
|
+
: undefined,
|
|
14184
|
+
user_activity_list: isSet(object.user_activity_list)
|
|
14185
|
+
? ListUserActivity.fromJSON(object.user_activity_list)
|
|
14186
|
+
: undefined,
|
|
14096
14187
|
};
|
|
14097
14188
|
},
|
|
14098
14189
|
|
|
@@ -14256,6 +14347,21 @@ export const ListDataSocket = {
|
|
|
14256
14347
|
if (message.emoji_list !== undefined) {
|
|
14257
14348
|
obj.emoji_list = EmojiListedResponse.toJSON(message.emoji_list);
|
|
14258
14349
|
}
|
|
14350
|
+
if (message.list_friend_req !== undefined) {
|
|
14351
|
+
obj.list_friend_req = ListFriendsRequest.toJSON(message.list_friend_req);
|
|
14352
|
+
}
|
|
14353
|
+
if (message.friend_list !== undefined) {
|
|
14354
|
+
obj.friend_list = FriendList.toJSON(message.friend_list);
|
|
14355
|
+
}
|
|
14356
|
+
if (message.list_apps_req !== undefined) {
|
|
14357
|
+
obj.list_apps_req = ListChannelAppsRequest.toJSON(message.list_apps_req);
|
|
14358
|
+
}
|
|
14359
|
+
if (message.channel_apps_list !== undefined) {
|
|
14360
|
+
obj.channel_apps_list = ListChannelAppsResponse.toJSON(message.channel_apps_list);
|
|
14361
|
+
}
|
|
14362
|
+
if (message.user_activity_list !== undefined) {
|
|
14363
|
+
obj.user_activity_list = ListUserActivity.toJSON(message.user_activity_list);
|
|
14364
|
+
}
|
|
14259
14365
|
return obj;
|
|
14260
14366
|
},
|
|
14261
14367
|
|
|
@@ -14430,6 +14536,21 @@ export const ListDataSocket = {
|
|
|
14430
14536
|
message.emoji_list = (object.emoji_list !== undefined && object.emoji_list !== null)
|
|
14431
14537
|
? EmojiListedResponse.fromPartial(object.emoji_list)
|
|
14432
14538
|
: undefined;
|
|
14539
|
+
message.list_friend_req = (object.list_friend_req !== undefined && object.list_friend_req !== null)
|
|
14540
|
+
? ListFriendsRequest.fromPartial(object.list_friend_req)
|
|
14541
|
+
: undefined;
|
|
14542
|
+
message.friend_list = (object.friend_list !== undefined && object.friend_list !== null)
|
|
14543
|
+
? FriendList.fromPartial(object.friend_list)
|
|
14544
|
+
: undefined;
|
|
14545
|
+
message.list_apps_req = (object.list_apps_req !== undefined && object.list_apps_req !== null)
|
|
14546
|
+
? ListChannelAppsRequest.fromPartial(object.list_apps_req)
|
|
14547
|
+
: undefined;
|
|
14548
|
+
message.channel_apps_list = (object.channel_apps_list !== undefined && object.channel_apps_list !== null)
|
|
14549
|
+
? ListChannelAppsResponse.fromPartial(object.channel_apps_list)
|
|
14550
|
+
: undefined;
|
|
14551
|
+
message.user_activity_list = (object.user_activity_list !== undefined && object.user_activity_list !== null)
|
|
14552
|
+
? ListUserActivity.fromPartial(object.user_activity_list)
|
|
14553
|
+
: undefined;
|
|
14433
14554
|
return message;
|
|
14434
14555
|
},
|
|
14435
14556
|
};
|