mezon-js-protobuf 1.8.26 → 1.8.27
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 +140 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +43 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +369 -331
- package/dist/mezon-js-protobuf.cjs.js +68 -2
- package/dist/mezon-js-protobuf.esm.mjs +68 -2
- package/package.json +1 -1
- package/rtapi/realtime.ts +85 -1
|
@@ -14260,7 +14260,8 @@ function createBaseEnvelope() {
|
|
|
14260
14260
|
voice_reaction_send: void 0,
|
|
14261
14261
|
mark_as_read: void 0,
|
|
14262
14262
|
list_data_socket: void 0,
|
|
14263
|
-
quick_menu_event: void 0
|
|
14263
|
+
quick_menu_event: void 0,
|
|
14264
|
+
un_block_friend: void 0
|
|
14264
14265
|
};
|
|
14265
14266
|
}
|
|
14266
14267
|
var Envelope = {
|
|
@@ -14517,6 +14518,9 @@ var Envelope = {
|
|
|
14517
14518
|
if (message.quick_menu_event !== void 0) {
|
|
14518
14519
|
QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(674).fork()).ldelim();
|
|
14519
14520
|
}
|
|
14521
|
+
if (message.un_block_friend !== void 0) {
|
|
14522
|
+
UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
|
|
14523
|
+
}
|
|
14520
14524
|
return writer;
|
|
14521
14525
|
},
|
|
14522
14526
|
decode(input, length) {
|
|
@@ -15030,6 +15034,12 @@ var Envelope = {
|
|
|
15030
15034
|
}
|
|
15031
15035
|
message.quick_menu_event = QuickMenuDataEvent.decode(reader, reader.uint32());
|
|
15032
15036
|
continue;
|
|
15037
|
+
case 85:
|
|
15038
|
+
if (tag !== 682) {
|
|
15039
|
+
break;
|
|
15040
|
+
}
|
|
15041
|
+
message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
|
|
15042
|
+
continue;
|
|
15033
15043
|
}
|
|
15034
15044
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15035
15045
|
break;
|
|
@@ -15123,7 +15133,8 @@ var Envelope = {
|
|
|
15123
15133
|
voice_reaction_send: isSet4(object.voice_reaction_send) ? VoiceReactionSend.fromJSON(object.voice_reaction_send) : void 0,
|
|
15124
15134
|
mark_as_read: isSet4(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : void 0,
|
|
15125
15135
|
list_data_socket: isSet4(object.list_data_socket) ? ListDataSocket.fromJSON(object.list_data_socket) : void 0,
|
|
15126
|
-
quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0
|
|
15136
|
+
quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
|
|
15137
|
+
un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0
|
|
15127
15138
|
};
|
|
15128
15139
|
},
|
|
15129
15140
|
toJSON(message) {
|
|
@@ -15382,6 +15393,9 @@ var Envelope = {
|
|
|
15382
15393
|
if (message.quick_menu_event !== void 0) {
|
|
15383
15394
|
obj.quick_menu_event = QuickMenuDataEvent.toJSON(message.quick_menu_event);
|
|
15384
15395
|
}
|
|
15396
|
+
if (message.un_block_friend !== void 0) {
|
|
15397
|
+
obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
|
|
15398
|
+
}
|
|
15385
15399
|
return obj;
|
|
15386
15400
|
},
|
|
15387
15401
|
create(base) {
|
|
@@ -15474,6 +15488,7 @@ var Envelope = {
|
|
|
15474
15488
|
message.mark_as_read = object.mark_as_read !== void 0 && object.mark_as_read !== null ? MarkAsRead.fromPartial(object.mark_as_read) : void 0;
|
|
15475
15489
|
message.list_data_socket = object.list_data_socket !== void 0 && object.list_data_socket !== null ? ListDataSocket.fromPartial(object.list_data_socket) : void 0;
|
|
15476
15490
|
message.quick_menu_event = object.quick_menu_event !== void 0 && object.quick_menu_event !== null ? QuickMenuDataEvent.fromPartial(object.quick_menu_event) : void 0;
|
|
15491
|
+
message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
|
|
15477
15492
|
return message;
|
|
15478
15493
|
}
|
|
15479
15494
|
};
|
|
@@ -17983,6 +17998,57 @@ var BlockFriend = {
|
|
|
17983
17998
|
return message;
|
|
17984
17999
|
}
|
|
17985
18000
|
};
|
|
18001
|
+
function createBaseUnblockFriend() {
|
|
18002
|
+
return { user_id: "" };
|
|
18003
|
+
}
|
|
18004
|
+
var UnblockFriend = {
|
|
18005
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
18006
|
+
if (message.user_id !== "") {
|
|
18007
|
+
writer.uint32(10).string(message.user_id);
|
|
18008
|
+
}
|
|
18009
|
+
return writer;
|
|
18010
|
+
},
|
|
18011
|
+
decode(input, length) {
|
|
18012
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
18013
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
18014
|
+
const message = createBaseUnblockFriend();
|
|
18015
|
+
while (reader.pos < end) {
|
|
18016
|
+
const tag = reader.uint32();
|
|
18017
|
+
switch (tag >>> 3) {
|
|
18018
|
+
case 1:
|
|
18019
|
+
if (tag !== 10) {
|
|
18020
|
+
break;
|
|
18021
|
+
}
|
|
18022
|
+
message.user_id = reader.string();
|
|
18023
|
+
continue;
|
|
18024
|
+
}
|
|
18025
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
18026
|
+
break;
|
|
18027
|
+
}
|
|
18028
|
+
reader.skipType(tag & 7);
|
|
18029
|
+
}
|
|
18030
|
+
return message;
|
|
18031
|
+
},
|
|
18032
|
+
fromJSON(object) {
|
|
18033
|
+
return { user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "" };
|
|
18034
|
+
},
|
|
18035
|
+
toJSON(message) {
|
|
18036
|
+
const obj = {};
|
|
18037
|
+
if (message.user_id !== "") {
|
|
18038
|
+
obj.user_id = message.user_id;
|
|
18039
|
+
}
|
|
18040
|
+
return obj;
|
|
18041
|
+
},
|
|
18042
|
+
create(base) {
|
|
18043
|
+
return UnblockFriend.fromPartial(base != null ? base : {});
|
|
18044
|
+
},
|
|
18045
|
+
fromPartial(object) {
|
|
18046
|
+
var _a;
|
|
18047
|
+
const message = createBaseUnblockFriend();
|
|
18048
|
+
message.user_id = (_a = object.user_id) != null ? _a : "";
|
|
18049
|
+
return message;
|
|
18050
|
+
}
|
|
18051
|
+
};
|
|
17986
18052
|
function createBasePing() {
|
|
17987
18053
|
return {};
|
|
17988
18054
|
}
|
|
@@ -14247,7 +14247,8 @@ function createBaseEnvelope() {
|
|
|
14247
14247
|
voice_reaction_send: void 0,
|
|
14248
14248
|
mark_as_read: void 0,
|
|
14249
14249
|
list_data_socket: void 0,
|
|
14250
|
-
quick_menu_event: void 0
|
|
14250
|
+
quick_menu_event: void 0,
|
|
14251
|
+
un_block_friend: void 0
|
|
14251
14252
|
};
|
|
14252
14253
|
}
|
|
14253
14254
|
var Envelope = {
|
|
@@ -14504,6 +14505,9 @@ var Envelope = {
|
|
|
14504
14505
|
if (message.quick_menu_event !== void 0) {
|
|
14505
14506
|
QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(674).fork()).ldelim();
|
|
14506
14507
|
}
|
|
14508
|
+
if (message.un_block_friend !== void 0) {
|
|
14509
|
+
UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
|
|
14510
|
+
}
|
|
14507
14511
|
return writer;
|
|
14508
14512
|
},
|
|
14509
14513
|
decode(input, length) {
|
|
@@ -15017,6 +15021,12 @@ var Envelope = {
|
|
|
15017
15021
|
}
|
|
15018
15022
|
message.quick_menu_event = QuickMenuDataEvent.decode(reader, reader.uint32());
|
|
15019
15023
|
continue;
|
|
15024
|
+
case 85:
|
|
15025
|
+
if (tag !== 682) {
|
|
15026
|
+
break;
|
|
15027
|
+
}
|
|
15028
|
+
message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
|
|
15029
|
+
continue;
|
|
15020
15030
|
}
|
|
15021
15031
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15022
15032
|
break;
|
|
@@ -15110,7 +15120,8 @@ var Envelope = {
|
|
|
15110
15120
|
voice_reaction_send: isSet4(object.voice_reaction_send) ? VoiceReactionSend.fromJSON(object.voice_reaction_send) : void 0,
|
|
15111
15121
|
mark_as_read: isSet4(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : void 0,
|
|
15112
15122
|
list_data_socket: isSet4(object.list_data_socket) ? ListDataSocket.fromJSON(object.list_data_socket) : void 0,
|
|
15113
|
-
quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0
|
|
15123
|
+
quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
|
|
15124
|
+
un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0
|
|
15114
15125
|
};
|
|
15115
15126
|
},
|
|
15116
15127
|
toJSON(message) {
|
|
@@ -15369,6 +15380,9 @@ var Envelope = {
|
|
|
15369
15380
|
if (message.quick_menu_event !== void 0) {
|
|
15370
15381
|
obj.quick_menu_event = QuickMenuDataEvent.toJSON(message.quick_menu_event);
|
|
15371
15382
|
}
|
|
15383
|
+
if (message.un_block_friend !== void 0) {
|
|
15384
|
+
obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
|
|
15385
|
+
}
|
|
15372
15386
|
return obj;
|
|
15373
15387
|
},
|
|
15374
15388
|
create(base) {
|
|
@@ -15461,6 +15475,7 @@ var Envelope = {
|
|
|
15461
15475
|
message.mark_as_read = object.mark_as_read !== void 0 && object.mark_as_read !== null ? MarkAsRead.fromPartial(object.mark_as_read) : void 0;
|
|
15462
15476
|
message.list_data_socket = object.list_data_socket !== void 0 && object.list_data_socket !== null ? ListDataSocket.fromPartial(object.list_data_socket) : void 0;
|
|
15463
15477
|
message.quick_menu_event = object.quick_menu_event !== void 0 && object.quick_menu_event !== null ? QuickMenuDataEvent.fromPartial(object.quick_menu_event) : void 0;
|
|
15478
|
+
message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
|
|
15464
15479
|
return message;
|
|
15465
15480
|
}
|
|
15466
15481
|
};
|
|
@@ -17970,6 +17985,57 @@ var BlockFriend = {
|
|
|
17970
17985
|
return message;
|
|
17971
17986
|
}
|
|
17972
17987
|
};
|
|
17988
|
+
function createBaseUnblockFriend() {
|
|
17989
|
+
return { user_id: "" };
|
|
17990
|
+
}
|
|
17991
|
+
var UnblockFriend = {
|
|
17992
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
17993
|
+
if (message.user_id !== "") {
|
|
17994
|
+
writer.uint32(10).string(message.user_id);
|
|
17995
|
+
}
|
|
17996
|
+
return writer;
|
|
17997
|
+
},
|
|
17998
|
+
decode(input, length) {
|
|
17999
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
18000
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
18001
|
+
const message = createBaseUnblockFriend();
|
|
18002
|
+
while (reader.pos < end) {
|
|
18003
|
+
const tag = reader.uint32();
|
|
18004
|
+
switch (tag >>> 3) {
|
|
18005
|
+
case 1:
|
|
18006
|
+
if (tag !== 10) {
|
|
18007
|
+
break;
|
|
18008
|
+
}
|
|
18009
|
+
message.user_id = reader.string();
|
|
18010
|
+
continue;
|
|
18011
|
+
}
|
|
18012
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
18013
|
+
break;
|
|
18014
|
+
}
|
|
18015
|
+
reader.skipType(tag & 7);
|
|
18016
|
+
}
|
|
18017
|
+
return message;
|
|
18018
|
+
},
|
|
18019
|
+
fromJSON(object) {
|
|
18020
|
+
return { user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "" };
|
|
18021
|
+
},
|
|
18022
|
+
toJSON(message) {
|
|
18023
|
+
const obj = {};
|
|
18024
|
+
if (message.user_id !== "") {
|
|
18025
|
+
obj.user_id = message.user_id;
|
|
18026
|
+
}
|
|
18027
|
+
return obj;
|
|
18028
|
+
},
|
|
18029
|
+
create(base) {
|
|
18030
|
+
return UnblockFriend.fromPartial(base != null ? base : {});
|
|
18031
|
+
},
|
|
18032
|
+
fromPartial(object) {
|
|
18033
|
+
var _a;
|
|
18034
|
+
const message = createBaseUnblockFriend();
|
|
18035
|
+
message.user_id = (_a = object.user_id) != null ? _a : "";
|
|
18036
|
+
return message;
|
|
18037
|
+
}
|
|
18038
|
+
};
|
|
17973
18039
|
function createBasePing() {
|
|
17974
18040
|
return {};
|
|
17975
18041
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.27",
|
|
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
|
@@ -422,7 +422,11 @@ export interface Envelope {
|
|
|
422
422
|
| ListDataSocket
|
|
423
423
|
| undefined;
|
|
424
424
|
/** quick menu event */
|
|
425
|
-
quick_menu_event?:
|
|
425
|
+
quick_menu_event?:
|
|
426
|
+
| QuickMenuDataEvent
|
|
427
|
+
| undefined;
|
|
428
|
+
/** unblock friend */
|
|
429
|
+
un_block_friend?: UnblockFriend | undefined;
|
|
426
430
|
}
|
|
427
431
|
|
|
428
432
|
export interface FollowEvent {
|
|
@@ -876,6 +880,11 @@ export interface BlockFriend {
|
|
|
876
880
|
user_id: string;
|
|
877
881
|
}
|
|
878
882
|
|
|
883
|
+
export interface UnblockFriend {
|
|
884
|
+
/** */
|
|
885
|
+
user_id: string;
|
|
886
|
+
}
|
|
887
|
+
|
|
879
888
|
/** Application-level heartbeat and connection check. */
|
|
880
889
|
export interface Ping {
|
|
881
890
|
}
|
|
@@ -1742,6 +1751,7 @@ function createBaseEnvelope(): Envelope {
|
|
|
1742
1751
|
mark_as_read: undefined,
|
|
1743
1752
|
list_data_socket: undefined,
|
|
1744
1753
|
quick_menu_event: undefined,
|
|
1754
|
+
un_block_friend: undefined,
|
|
1745
1755
|
};
|
|
1746
1756
|
}
|
|
1747
1757
|
|
|
@@ -2000,6 +2010,9 @@ export const Envelope = {
|
|
|
2000
2010
|
if (message.quick_menu_event !== undefined) {
|
|
2001
2011
|
QuickMenuDataEvent.encode(message.quick_menu_event, writer.uint32(674).fork()).ldelim();
|
|
2002
2012
|
}
|
|
2013
|
+
if (message.un_block_friend !== undefined) {
|
|
2014
|
+
UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
|
|
2015
|
+
}
|
|
2003
2016
|
return writer;
|
|
2004
2017
|
},
|
|
2005
2018
|
|
|
@@ -2598,6 +2611,13 @@ export const Envelope = {
|
|
|
2598
2611
|
|
|
2599
2612
|
message.quick_menu_event = QuickMenuDataEvent.decode(reader, reader.uint32());
|
|
2600
2613
|
continue;
|
|
2614
|
+
case 85:
|
|
2615
|
+
if (tag !== 682) {
|
|
2616
|
+
break;
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
|
|
2620
|
+
continue;
|
|
2601
2621
|
}
|
|
2602
2622
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2603
2623
|
break;
|
|
@@ -2801,6 +2821,7 @@ export const Envelope = {
|
|
|
2801
2821
|
quick_menu_event: isSet(object.quick_menu_event)
|
|
2802
2822
|
? QuickMenuDataEvent.fromJSON(object.quick_menu_event)
|
|
2803
2823
|
: undefined,
|
|
2824
|
+
un_block_friend: isSet(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : undefined,
|
|
2804
2825
|
};
|
|
2805
2826
|
},
|
|
2806
2827
|
|
|
@@ -3060,6 +3081,9 @@ export const Envelope = {
|
|
|
3060
3081
|
if (message.quick_menu_event !== undefined) {
|
|
3061
3082
|
obj.quick_menu_event = QuickMenuDataEvent.toJSON(message.quick_menu_event);
|
|
3062
3083
|
}
|
|
3084
|
+
if (message.un_block_friend !== undefined) {
|
|
3085
|
+
obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
|
|
3086
|
+
}
|
|
3063
3087
|
return obj;
|
|
3064
3088
|
},
|
|
3065
3089
|
|
|
@@ -3337,6 +3361,9 @@ export const Envelope = {
|
|
|
3337
3361
|
message.quick_menu_event = (object.quick_menu_event !== undefined && object.quick_menu_event !== null)
|
|
3338
3362
|
? QuickMenuDataEvent.fromPartial(object.quick_menu_event)
|
|
3339
3363
|
: undefined;
|
|
3364
|
+
message.un_block_friend = (object.un_block_friend !== undefined && object.un_block_friend !== null)
|
|
3365
|
+
? UnblockFriend.fromPartial(object.un_block_friend)
|
|
3366
|
+
: undefined;
|
|
3340
3367
|
return message;
|
|
3341
3368
|
},
|
|
3342
3369
|
};
|
|
@@ -6819,6 +6846,63 @@ export const BlockFriend = {
|
|
|
6819
6846
|
},
|
|
6820
6847
|
};
|
|
6821
6848
|
|
|
6849
|
+
function createBaseUnblockFriend(): UnblockFriend {
|
|
6850
|
+
return { user_id: "" };
|
|
6851
|
+
}
|
|
6852
|
+
|
|
6853
|
+
export const UnblockFriend = {
|
|
6854
|
+
encode(message: UnblockFriend, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
6855
|
+
if (message.user_id !== "") {
|
|
6856
|
+
writer.uint32(10).string(message.user_id);
|
|
6857
|
+
}
|
|
6858
|
+
return writer;
|
|
6859
|
+
},
|
|
6860
|
+
|
|
6861
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UnblockFriend {
|
|
6862
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
6863
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
6864
|
+
const message = createBaseUnblockFriend();
|
|
6865
|
+
while (reader.pos < end) {
|
|
6866
|
+
const tag = reader.uint32();
|
|
6867
|
+
switch (tag >>> 3) {
|
|
6868
|
+
case 1:
|
|
6869
|
+
if (tag !== 10) {
|
|
6870
|
+
break;
|
|
6871
|
+
}
|
|
6872
|
+
|
|
6873
|
+
message.user_id = reader.string();
|
|
6874
|
+
continue;
|
|
6875
|
+
}
|
|
6876
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6877
|
+
break;
|
|
6878
|
+
}
|
|
6879
|
+
reader.skipType(tag & 7);
|
|
6880
|
+
}
|
|
6881
|
+
return message;
|
|
6882
|
+
},
|
|
6883
|
+
|
|
6884
|
+
fromJSON(object: any): UnblockFriend {
|
|
6885
|
+
return { user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "" };
|
|
6886
|
+
},
|
|
6887
|
+
|
|
6888
|
+
toJSON(message: UnblockFriend): unknown {
|
|
6889
|
+
const obj: any = {};
|
|
6890
|
+
if (message.user_id !== "") {
|
|
6891
|
+
obj.user_id = message.user_id;
|
|
6892
|
+
}
|
|
6893
|
+
return obj;
|
|
6894
|
+
},
|
|
6895
|
+
|
|
6896
|
+
create<I extends Exact<DeepPartial<UnblockFriend>, I>>(base?: I): UnblockFriend {
|
|
6897
|
+
return UnblockFriend.fromPartial(base ?? ({} as any));
|
|
6898
|
+
},
|
|
6899
|
+
fromPartial<I extends Exact<DeepPartial<UnblockFriend>, I>>(object: I): UnblockFriend {
|
|
6900
|
+
const message = createBaseUnblockFriend();
|
|
6901
|
+
message.user_id = object.user_id ?? "";
|
|
6902
|
+
return message;
|
|
6903
|
+
},
|
|
6904
|
+
};
|
|
6905
|
+
|
|
6822
6906
|
function createBasePing(): Ping {
|
|
6823
6907
|
return {};
|
|
6824
6908
|
}
|