mezon-js-protobuf 1.6.90 → 1.6.91
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 +37687 -37687
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +130 -172
- package/dist/mezon-js-protobuf.cjs.js +1 -125
- package/dist/mezon-js-protobuf.esm.mjs +1 -125
- package/package.json +1 -1
- package/rtapi/realtime.ts +11387 -11411
|
@@ -6224,7 +6224,6 @@ function createBaseEnvelope() {
|
|
|
6224
6224
|
follow_event: void 0,
|
|
6225
6225
|
channel_app_event: void 0,
|
|
6226
6226
|
user_status_event: void 0,
|
|
6227
|
-
sfu_signaling_fwd: void 0,
|
|
6228
6227
|
remove_friend: void 0
|
|
6229
6228
|
};
|
|
6230
6229
|
}
|
|
@@ -6437,11 +6436,8 @@ var Envelope = {
|
|
|
6437
6436
|
if (message.user_status_event !== void 0) {
|
|
6438
6437
|
UserStatusEvent.encode(message.user_status_event, writer.uint32(554).fork()).ldelim();
|
|
6439
6438
|
}
|
|
6440
|
-
if (message.sfu_signaling_fwd !== void 0) {
|
|
6441
|
-
SFUSignalingFwd.encode(message.sfu_signaling_fwd, writer.uint32(562).fork()).ldelim();
|
|
6442
|
-
}
|
|
6443
6439
|
if (message.remove_friend !== void 0) {
|
|
6444
|
-
RemoveFriend.encode(message.remove_friend, writer.uint32(
|
|
6440
|
+
RemoveFriend.encode(message.remove_friend, writer.uint32(562).fork()).ldelim();
|
|
6445
6441
|
}
|
|
6446
6442
|
return writer;
|
|
6447
6443
|
},
|
|
@@ -6870,12 +6866,6 @@ var Envelope = {
|
|
|
6870
6866
|
if (tag !== 562) {
|
|
6871
6867
|
break;
|
|
6872
6868
|
}
|
|
6873
|
-
message.sfu_signaling_fwd = SFUSignalingFwd.decode(reader, reader.uint32());
|
|
6874
|
-
continue;
|
|
6875
|
-
case 71:
|
|
6876
|
-
if (tag !== 570) {
|
|
6877
|
-
break;
|
|
6878
|
-
}
|
|
6879
6869
|
message.remove_friend = RemoveFriend.decode(reader, reader.uint32());
|
|
6880
6870
|
continue;
|
|
6881
6871
|
}
|
|
@@ -6957,7 +6947,6 @@ var Envelope = {
|
|
|
6957
6947
|
follow_event: isSet4(object.follow_event) ? FollowEvent.fromJSON(object.follow_event) : void 0,
|
|
6958
6948
|
channel_app_event: isSet4(object.channel_app_event) ? ChannelAppEvent.fromJSON(object.channel_app_event) : void 0,
|
|
6959
6949
|
user_status_event: isSet4(object.user_status_event) ? UserStatusEvent.fromJSON(object.user_status_event) : void 0,
|
|
6960
|
-
sfu_signaling_fwd: isSet4(object.sfu_signaling_fwd) ? SFUSignalingFwd.fromJSON(object.sfu_signaling_fwd) : void 0,
|
|
6961
6950
|
remove_friend: isSet4(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : void 0
|
|
6962
6951
|
};
|
|
6963
6952
|
},
|
|
@@ -7170,9 +7159,6 @@ var Envelope = {
|
|
|
7170
7159
|
if (message.user_status_event !== void 0) {
|
|
7171
7160
|
obj.user_status_event = UserStatusEvent.toJSON(message.user_status_event);
|
|
7172
7161
|
}
|
|
7173
|
-
if (message.sfu_signaling_fwd !== void 0) {
|
|
7174
|
-
obj.sfu_signaling_fwd = SFUSignalingFwd.toJSON(message.sfu_signaling_fwd);
|
|
7175
|
-
}
|
|
7176
7162
|
if (message.remove_friend !== void 0) {
|
|
7177
7163
|
obj.remove_friend = RemoveFriend.toJSON(message.remove_friend);
|
|
7178
7164
|
}
|
|
@@ -7253,7 +7239,6 @@ var Envelope = {
|
|
|
7253
7239
|
message.follow_event = object.follow_event !== void 0 && object.follow_event !== null ? FollowEvent.fromPartial(object.follow_event) : void 0;
|
|
7254
7240
|
message.channel_app_event = object.channel_app_event !== void 0 && object.channel_app_event !== null ? ChannelAppEvent.fromPartial(object.channel_app_event) : void 0;
|
|
7255
7241
|
message.user_status_event = object.user_status_event !== void 0 && object.user_status_event !== null ? UserStatusEvent.fromPartial(object.user_status_event) : void 0;
|
|
7256
|
-
message.sfu_signaling_fwd = object.sfu_signaling_fwd !== void 0 && object.sfu_signaling_fwd !== null ? SFUSignalingFwd.fromPartial(object.sfu_signaling_fwd) : void 0;
|
|
7257
7242
|
message.remove_friend = object.remove_friend !== void 0 && object.remove_friend !== null ? RemoveFriend.fromPartial(object.remove_friend) : void 0;
|
|
7258
7243
|
return message;
|
|
7259
7244
|
}
|
|
@@ -7499,115 +7484,6 @@ var WebrtcSignalingFwd = {
|
|
|
7499
7484
|
return message;
|
|
7500
7485
|
}
|
|
7501
7486
|
};
|
|
7502
|
-
function createBaseSFUSignalingFwd() {
|
|
7503
|
-
return { clan_id: "", channel_id: "", data_type: 0, json_data: "", user_id: "" };
|
|
7504
|
-
}
|
|
7505
|
-
var SFUSignalingFwd = {
|
|
7506
|
-
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
7507
|
-
if (message.clan_id !== "") {
|
|
7508
|
-
writer.uint32(10).string(message.clan_id);
|
|
7509
|
-
}
|
|
7510
|
-
if (message.channel_id !== "") {
|
|
7511
|
-
writer.uint32(18).string(message.channel_id);
|
|
7512
|
-
}
|
|
7513
|
-
if (message.data_type !== 0) {
|
|
7514
|
-
writer.uint32(24).int32(message.data_type);
|
|
7515
|
-
}
|
|
7516
|
-
if (message.json_data !== "") {
|
|
7517
|
-
writer.uint32(34).string(message.json_data);
|
|
7518
|
-
}
|
|
7519
|
-
if (message.user_id !== "") {
|
|
7520
|
-
writer.uint32(42).string(message.user_id);
|
|
7521
|
-
}
|
|
7522
|
-
return writer;
|
|
7523
|
-
},
|
|
7524
|
-
decode(input, length) {
|
|
7525
|
-
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
7526
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7527
|
-
const message = createBaseSFUSignalingFwd();
|
|
7528
|
-
while (reader.pos < end) {
|
|
7529
|
-
const tag = reader.uint32();
|
|
7530
|
-
switch (tag >>> 3) {
|
|
7531
|
-
case 1:
|
|
7532
|
-
if (tag !== 10) {
|
|
7533
|
-
break;
|
|
7534
|
-
}
|
|
7535
|
-
message.clan_id = reader.string();
|
|
7536
|
-
continue;
|
|
7537
|
-
case 2:
|
|
7538
|
-
if (tag !== 18) {
|
|
7539
|
-
break;
|
|
7540
|
-
}
|
|
7541
|
-
message.channel_id = reader.string();
|
|
7542
|
-
continue;
|
|
7543
|
-
case 3:
|
|
7544
|
-
if (tag !== 24) {
|
|
7545
|
-
break;
|
|
7546
|
-
}
|
|
7547
|
-
message.data_type = reader.int32();
|
|
7548
|
-
continue;
|
|
7549
|
-
case 4:
|
|
7550
|
-
if (tag !== 34) {
|
|
7551
|
-
break;
|
|
7552
|
-
}
|
|
7553
|
-
message.json_data = reader.string();
|
|
7554
|
-
continue;
|
|
7555
|
-
case 5:
|
|
7556
|
-
if (tag !== 42) {
|
|
7557
|
-
break;
|
|
7558
|
-
}
|
|
7559
|
-
message.user_id = reader.string();
|
|
7560
|
-
continue;
|
|
7561
|
-
}
|
|
7562
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7563
|
-
break;
|
|
7564
|
-
}
|
|
7565
|
-
reader.skipType(tag & 7);
|
|
7566
|
-
}
|
|
7567
|
-
return message;
|
|
7568
|
-
},
|
|
7569
|
-
fromJSON(object) {
|
|
7570
|
-
return {
|
|
7571
|
-
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
7572
|
-
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7573
|
-
data_type: isSet4(object.data_type) ? globalThis.Number(object.data_type) : 0,
|
|
7574
|
-
json_data: isSet4(object.json_data) ? globalThis.String(object.json_data) : "",
|
|
7575
|
-
user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : ""
|
|
7576
|
-
};
|
|
7577
|
-
},
|
|
7578
|
-
toJSON(message) {
|
|
7579
|
-
const obj = {};
|
|
7580
|
-
if (message.clan_id !== "") {
|
|
7581
|
-
obj.clan_id = message.clan_id;
|
|
7582
|
-
}
|
|
7583
|
-
if (message.channel_id !== "") {
|
|
7584
|
-
obj.channel_id = message.channel_id;
|
|
7585
|
-
}
|
|
7586
|
-
if (message.data_type !== 0) {
|
|
7587
|
-
obj.data_type = Math.round(message.data_type);
|
|
7588
|
-
}
|
|
7589
|
-
if (message.json_data !== "") {
|
|
7590
|
-
obj.json_data = message.json_data;
|
|
7591
|
-
}
|
|
7592
|
-
if (message.user_id !== "") {
|
|
7593
|
-
obj.user_id = message.user_id;
|
|
7594
|
-
}
|
|
7595
|
-
return obj;
|
|
7596
|
-
},
|
|
7597
|
-
create(base) {
|
|
7598
|
-
return SFUSignalingFwd.fromPartial(base != null ? base : {});
|
|
7599
|
-
},
|
|
7600
|
-
fromPartial(object) {
|
|
7601
|
-
var _a, _b, _c, _d, _e;
|
|
7602
|
-
const message = createBaseSFUSignalingFwd();
|
|
7603
|
-
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
7604
|
-
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
7605
|
-
message.data_type = (_c = object.data_type) != null ? _c : 0;
|
|
7606
|
-
message.json_data = (_d = object.json_data) != null ? _d : "";
|
|
7607
|
-
message.user_id = (_e = object.user_id) != null ? _e : "";
|
|
7608
|
-
return message;
|
|
7609
|
-
}
|
|
7610
|
-
};
|
|
7611
7487
|
function createBaseAddClanUserEvent() {
|
|
7612
7488
|
return { clan_id: "", user: void 0 };
|
|
7613
7489
|
}
|
|
@@ -6211,7 +6211,6 @@ function createBaseEnvelope() {
|
|
|
6211
6211
|
follow_event: void 0,
|
|
6212
6212
|
channel_app_event: void 0,
|
|
6213
6213
|
user_status_event: void 0,
|
|
6214
|
-
sfu_signaling_fwd: void 0,
|
|
6215
6214
|
remove_friend: void 0
|
|
6216
6215
|
};
|
|
6217
6216
|
}
|
|
@@ -6424,11 +6423,8 @@ var Envelope = {
|
|
|
6424
6423
|
if (message.user_status_event !== void 0) {
|
|
6425
6424
|
UserStatusEvent.encode(message.user_status_event, writer.uint32(554).fork()).ldelim();
|
|
6426
6425
|
}
|
|
6427
|
-
if (message.sfu_signaling_fwd !== void 0) {
|
|
6428
|
-
SFUSignalingFwd.encode(message.sfu_signaling_fwd, writer.uint32(562).fork()).ldelim();
|
|
6429
|
-
}
|
|
6430
6426
|
if (message.remove_friend !== void 0) {
|
|
6431
|
-
RemoveFriend.encode(message.remove_friend, writer.uint32(
|
|
6427
|
+
RemoveFriend.encode(message.remove_friend, writer.uint32(562).fork()).ldelim();
|
|
6432
6428
|
}
|
|
6433
6429
|
return writer;
|
|
6434
6430
|
},
|
|
@@ -6857,12 +6853,6 @@ var Envelope = {
|
|
|
6857
6853
|
if (tag !== 562) {
|
|
6858
6854
|
break;
|
|
6859
6855
|
}
|
|
6860
|
-
message.sfu_signaling_fwd = SFUSignalingFwd.decode(reader, reader.uint32());
|
|
6861
|
-
continue;
|
|
6862
|
-
case 71:
|
|
6863
|
-
if (tag !== 570) {
|
|
6864
|
-
break;
|
|
6865
|
-
}
|
|
6866
6856
|
message.remove_friend = RemoveFriend.decode(reader, reader.uint32());
|
|
6867
6857
|
continue;
|
|
6868
6858
|
}
|
|
@@ -6944,7 +6934,6 @@ var Envelope = {
|
|
|
6944
6934
|
follow_event: isSet4(object.follow_event) ? FollowEvent.fromJSON(object.follow_event) : void 0,
|
|
6945
6935
|
channel_app_event: isSet4(object.channel_app_event) ? ChannelAppEvent.fromJSON(object.channel_app_event) : void 0,
|
|
6946
6936
|
user_status_event: isSet4(object.user_status_event) ? UserStatusEvent.fromJSON(object.user_status_event) : void 0,
|
|
6947
|
-
sfu_signaling_fwd: isSet4(object.sfu_signaling_fwd) ? SFUSignalingFwd.fromJSON(object.sfu_signaling_fwd) : void 0,
|
|
6948
6937
|
remove_friend: isSet4(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : void 0
|
|
6949
6938
|
};
|
|
6950
6939
|
},
|
|
@@ -7157,9 +7146,6 @@ var Envelope = {
|
|
|
7157
7146
|
if (message.user_status_event !== void 0) {
|
|
7158
7147
|
obj.user_status_event = UserStatusEvent.toJSON(message.user_status_event);
|
|
7159
7148
|
}
|
|
7160
|
-
if (message.sfu_signaling_fwd !== void 0) {
|
|
7161
|
-
obj.sfu_signaling_fwd = SFUSignalingFwd.toJSON(message.sfu_signaling_fwd);
|
|
7162
|
-
}
|
|
7163
7149
|
if (message.remove_friend !== void 0) {
|
|
7164
7150
|
obj.remove_friend = RemoveFriend.toJSON(message.remove_friend);
|
|
7165
7151
|
}
|
|
@@ -7240,7 +7226,6 @@ var Envelope = {
|
|
|
7240
7226
|
message.follow_event = object.follow_event !== void 0 && object.follow_event !== null ? FollowEvent.fromPartial(object.follow_event) : void 0;
|
|
7241
7227
|
message.channel_app_event = object.channel_app_event !== void 0 && object.channel_app_event !== null ? ChannelAppEvent.fromPartial(object.channel_app_event) : void 0;
|
|
7242
7228
|
message.user_status_event = object.user_status_event !== void 0 && object.user_status_event !== null ? UserStatusEvent.fromPartial(object.user_status_event) : void 0;
|
|
7243
|
-
message.sfu_signaling_fwd = object.sfu_signaling_fwd !== void 0 && object.sfu_signaling_fwd !== null ? SFUSignalingFwd.fromPartial(object.sfu_signaling_fwd) : void 0;
|
|
7244
7229
|
message.remove_friend = object.remove_friend !== void 0 && object.remove_friend !== null ? RemoveFriend.fromPartial(object.remove_friend) : void 0;
|
|
7245
7230
|
return message;
|
|
7246
7231
|
}
|
|
@@ -7486,115 +7471,6 @@ var WebrtcSignalingFwd = {
|
|
|
7486
7471
|
return message;
|
|
7487
7472
|
}
|
|
7488
7473
|
};
|
|
7489
|
-
function createBaseSFUSignalingFwd() {
|
|
7490
|
-
return { clan_id: "", channel_id: "", data_type: 0, json_data: "", user_id: "" };
|
|
7491
|
-
}
|
|
7492
|
-
var SFUSignalingFwd = {
|
|
7493
|
-
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
7494
|
-
if (message.clan_id !== "") {
|
|
7495
|
-
writer.uint32(10).string(message.clan_id);
|
|
7496
|
-
}
|
|
7497
|
-
if (message.channel_id !== "") {
|
|
7498
|
-
writer.uint32(18).string(message.channel_id);
|
|
7499
|
-
}
|
|
7500
|
-
if (message.data_type !== 0) {
|
|
7501
|
-
writer.uint32(24).int32(message.data_type);
|
|
7502
|
-
}
|
|
7503
|
-
if (message.json_data !== "") {
|
|
7504
|
-
writer.uint32(34).string(message.json_data);
|
|
7505
|
-
}
|
|
7506
|
-
if (message.user_id !== "") {
|
|
7507
|
-
writer.uint32(42).string(message.user_id);
|
|
7508
|
-
}
|
|
7509
|
-
return writer;
|
|
7510
|
-
},
|
|
7511
|
-
decode(input, length) {
|
|
7512
|
-
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
7513
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7514
|
-
const message = createBaseSFUSignalingFwd();
|
|
7515
|
-
while (reader.pos < end) {
|
|
7516
|
-
const tag = reader.uint32();
|
|
7517
|
-
switch (tag >>> 3) {
|
|
7518
|
-
case 1:
|
|
7519
|
-
if (tag !== 10) {
|
|
7520
|
-
break;
|
|
7521
|
-
}
|
|
7522
|
-
message.clan_id = reader.string();
|
|
7523
|
-
continue;
|
|
7524
|
-
case 2:
|
|
7525
|
-
if (tag !== 18) {
|
|
7526
|
-
break;
|
|
7527
|
-
}
|
|
7528
|
-
message.channel_id = reader.string();
|
|
7529
|
-
continue;
|
|
7530
|
-
case 3:
|
|
7531
|
-
if (tag !== 24) {
|
|
7532
|
-
break;
|
|
7533
|
-
}
|
|
7534
|
-
message.data_type = reader.int32();
|
|
7535
|
-
continue;
|
|
7536
|
-
case 4:
|
|
7537
|
-
if (tag !== 34) {
|
|
7538
|
-
break;
|
|
7539
|
-
}
|
|
7540
|
-
message.json_data = reader.string();
|
|
7541
|
-
continue;
|
|
7542
|
-
case 5:
|
|
7543
|
-
if (tag !== 42) {
|
|
7544
|
-
break;
|
|
7545
|
-
}
|
|
7546
|
-
message.user_id = reader.string();
|
|
7547
|
-
continue;
|
|
7548
|
-
}
|
|
7549
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7550
|
-
break;
|
|
7551
|
-
}
|
|
7552
|
-
reader.skipType(tag & 7);
|
|
7553
|
-
}
|
|
7554
|
-
return message;
|
|
7555
|
-
},
|
|
7556
|
-
fromJSON(object) {
|
|
7557
|
-
return {
|
|
7558
|
-
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
7559
|
-
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7560
|
-
data_type: isSet4(object.data_type) ? globalThis.Number(object.data_type) : 0,
|
|
7561
|
-
json_data: isSet4(object.json_data) ? globalThis.String(object.json_data) : "",
|
|
7562
|
-
user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : ""
|
|
7563
|
-
};
|
|
7564
|
-
},
|
|
7565
|
-
toJSON(message) {
|
|
7566
|
-
const obj = {};
|
|
7567
|
-
if (message.clan_id !== "") {
|
|
7568
|
-
obj.clan_id = message.clan_id;
|
|
7569
|
-
}
|
|
7570
|
-
if (message.channel_id !== "") {
|
|
7571
|
-
obj.channel_id = message.channel_id;
|
|
7572
|
-
}
|
|
7573
|
-
if (message.data_type !== 0) {
|
|
7574
|
-
obj.data_type = Math.round(message.data_type);
|
|
7575
|
-
}
|
|
7576
|
-
if (message.json_data !== "") {
|
|
7577
|
-
obj.json_data = message.json_data;
|
|
7578
|
-
}
|
|
7579
|
-
if (message.user_id !== "") {
|
|
7580
|
-
obj.user_id = message.user_id;
|
|
7581
|
-
}
|
|
7582
|
-
return obj;
|
|
7583
|
-
},
|
|
7584
|
-
create(base) {
|
|
7585
|
-
return SFUSignalingFwd.fromPartial(base != null ? base : {});
|
|
7586
|
-
},
|
|
7587
|
-
fromPartial(object) {
|
|
7588
|
-
var _a, _b, _c, _d, _e;
|
|
7589
|
-
const message = createBaseSFUSignalingFwd();
|
|
7590
|
-
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
7591
|
-
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
7592
|
-
message.data_type = (_c = object.data_type) != null ? _c : 0;
|
|
7593
|
-
message.json_data = (_d = object.json_data) != null ? _d : "";
|
|
7594
|
-
message.user_id = (_e = object.user_id) != null ? _e : "";
|
|
7595
|
-
return message;
|
|
7596
|
-
}
|
|
7597
|
-
};
|
|
7598
7474
|
function createBaseAddClanUserEvent() {
|
|
7599
7475
|
return { clan_id: "", user: void 0 };
|
|
7600
7476
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.91",
|
|
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",
|