mezon-js-protobuf 1.7.44 → 1.7.45
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.
|
@@ -10700,12 +10700,12 @@ var MessageTypingEvent = {
|
|
|
10700
10700
|
}
|
|
10701
10701
|
};
|
|
10702
10702
|
function createBaseVoiceLeavedEvent() {
|
|
10703
|
-
return {
|
|
10703
|
+
return { ids: [], clan_id: "", voice_channel_id: "", voice_user_id: "" };
|
|
10704
10704
|
}
|
|
10705
10705
|
var VoiceLeavedEvent = {
|
|
10706
10706
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
10707
|
-
|
|
10708
|
-
writer.uint32(10).string(
|
|
10707
|
+
for (const v of message.ids) {
|
|
10708
|
+
writer.uint32(10).string(v);
|
|
10709
10709
|
}
|
|
10710
10710
|
if (message.clan_id !== "") {
|
|
10711
10711
|
writer.uint32(18).string(message.clan_id);
|
|
@@ -10729,7 +10729,7 @@ var VoiceLeavedEvent = {
|
|
|
10729
10729
|
if (tag !== 10) {
|
|
10730
10730
|
break;
|
|
10731
10731
|
}
|
|
10732
|
-
message.
|
|
10732
|
+
message.ids.push(reader.string());
|
|
10733
10733
|
continue;
|
|
10734
10734
|
case 2:
|
|
10735
10735
|
if (tag !== 18) {
|
|
@@ -10759,16 +10759,17 @@ var VoiceLeavedEvent = {
|
|
|
10759
10759
|
},
|
|
10760
10760
|
fromJSON(object) {
|
|
10761
10761
|
return {
|
|
10762
|
-
|
|
10762
|
+
ids: globalThis.Array.isArray(object == null ? void 0 : object.ids) ? object.ids.map((e) => globalThis.String(e)) : [],
|
|
10763
10763
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
10764
10764
|
voice_channel_id: isSet4(object.voice_channel_id) ? globalThis.String(object.voice_channel_id) : "",
|
|
10765
10765
|
voice_user_id: isSet4(object.voice_user_id) ? globalThis.String(object.voice_user_id) : ""
|
|
10766
10766
|
};
|
|
10767
10767
|
},
|
|
10768
10768
|
toJSON(message) {
|
|
10769
|
+
var _a;
|
|
10769
10770
|
const obj = {};
|
|
10770
|
-
if (message.
|
|
10771
|
-
obj.
|
|
10771
|
+
if ((_a = message.ids) == null ? void 0 : _a.length) {
|
|
10772
|
+
obj.ids = message.ids;
|
|
10772
10773
|
}
|
|
10773
10774
|
if (message.clan_id !== "") {
|
|
10774
10775
|
obj.clan_id = message.clan_id;
|
|
@@ -10787,7 +10788,7 @@ var VoiceLeavedEvent = {
|
|
|
10787
10788
|
fromPartial(object) {
|
|
10788
10789
|
var _a, _b, _c, _d;
|
|
10789
10790
|
const message = createBaseVoiceLeavedEvent();
|
|
10790
|
-
message.
|
|
10791
|
+
message.ids = ((_a = object.ids) == null ? void 0 : _a.map((e) => e)) || [];
|
|
10791
10792
|
message.clan_id = (_b = object.clan_id) != null ? _b : "";
|
|
10792
10793
|
message.voice_channel_id = (_c = object.voice_channel_id) != null ? _c : "";
|
|
10793
10794
|
message.voice_user_id = (_d = object.voice_user_id) != null ? _d : "";
|
|
@@ -10687,12 +10687,12 @@ var MessageTypingEvent = {
|
|
|
10687
10687
|
}
|
|
10688
10688
|
};
|
|
10689
10689
|
function createBaseVoiceLeavedEvent() {
|
|
10690
|
-
return {
|
|
10690
|
+
return { ids: [], clan_id: "", voice_channel_id: "", voice_user_id: "" };
|
|
10691
10691
|
}
|
|
10692
10692
|
var VoiceLeavedEvent = {
|
|
10693
10693
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
10694
|
-
|
|
10695
|
-
writer.uint32(10).string(
|
|
10694
|
+
for (const v of message.ids) {
|
|
10695
|
+
writer.uint32(10).string(v);
|
|
10696
10696
|
}
|
|
10697
10697
|
if (message.clan_id !== "") {
|
|
10698
10698
|
writer.uint32(18).string(message.clan_id);
|
|
@@ -10716,7 +10716,7 @@ var VoiceLeavedEvent = {
|
|
|
10716
10716
|
if (tag !== 10) {
|
|
10717
10717
|
break;
|
|
10718
10718
|
}
|
|
10719
|
-
message.
|
|
10719
|
+
message.ids.push(reader.string());
|
|
10720
10720
|
continue;
|
|
10721
10721
|
case 2:
|
|
10722
10722
|
if (tag !== 18) {
|
|
@@ -10746,16 +10746,17 @@ var VoiceLeavedEvent = {
|
|
|
10746
10746
|
},
|
|
10747
10747
|
fromJSON(object) {
|
|
10748
10748
|
return {
|
|
10749
|
-
|
|
10749
|
+
ids: globalThis.Array.isArray(object == null ? void 0 : object.ids) ? object.ids.map((e) => globalThis.String(e)) : [],
|
|
10750
10750
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
10751
10751
|
voice_channel_id: isSet4(object.voice_channel_id) ? globalThis.String(object.voice_channel_id) : "",
|
|
10752
10752
|
voice_user_id: isSet4(object.voice_user_id) ? globalThis.String(object.voice_user_id) : ""
|
|
10753
10753
|
};
|
|
10754
10754
|
},
|
|
10755
10755
|
toJSON(message) {
|
|
10756
|
+
var _a;
|
|
10756
10757
|
const obj = {};
|
|
10757
|
-
if (message.
|
|
10758
|
-
obj.
|
|
10758
|
+
if ((_a = message.ids) == null ? void 0 : _a.length) {
|
|
10759
|
+
obj.ids = message.ids;
|
|
10759
10760
|
}
|
|
10760
10761
|
if (message.clan_id !== "") {
|
|
10761
10762
|
obj.clan_id = message.clan_id;
|
|
@@ -10774,7 +10775,7 @@ var VoiceLeavedEvent = {
|
|
|
10774
10775
|
fromPartial(object) {
|
|
10775
10776
|
var _a, _b, _c, _d;
|
|
10776
10777
|
const message = createBaseVoiceLeavedEvent();
|
|
10777
|
-
message.
|
|
10778
|
+
message.ids = ((_a = object.ids) == null ? void 0 : _a.map((e) => e)) || [];
|
|
10778
10779
|
message.clan_id = (_b = object.clan_id) != null ? _b : "";
|
|
10779
10780
|
message.voice_channel_id = (_c = object.voice_channel_id) != null ? _c : "";
|
|
10780
10781
|
message.voice_user_id = (_d = object.voice_user_id) != null ? _d : "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.45",
|
|
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
|
@@ -830,7 +830,7 @@ export interface MessageTypingEvent {
|
|
|
830
830
|
/** Voice Joined event */
|
|
831
831
|
export interface VoiceLeavedEvent {
|
|
832
832
|
/** id voice */
|
|
833
|
-
|
|
833
|
+
ids: string[];
|
|
834
834
|
/** The unique identifier of the chat clan. */
|
|
835
835
|
clan_id: string;
|
|
836
836
|
/** voice channel name */
|
|
@@ -6777,13 +6777,13 @@ export const MessageTypingEvent = {
|
|
|
6777
6777
|
};
|
|
6778
6778
|
|
|
6779
6779
|
function createBaseVoiceLeavedEvent(): VoiceLeavedEvent {
|
|
6780
|
-
return {
|
|
6780
|
+
return { ids: [], clan_id: "", voice_channel_id: "", voice_user_id: "" };
|
|
6781
6781
|
}
|
|
6782
6782
|
|
|
6783
6783
|
export const VoiceLeavedEvent = {
|
|
6784
6784
|
encode(message: VoiceLeavedEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
6785
|
-
|
|
6786
|
-
writer.uint32(10).string(
|
|
6785
|
+
for (const v of message.ids) {
|
|
6786
|
+
writer.uint32(10).string(v!);
|
|
6787
6787
|
}
|
|
6788
6788
|
if (message.clan_id !== "") {
|
|
6789
6789
|
writer.uint32(18).string(message.clan_id);
|
|
@@ -6809,7 +6809,7 @@ export const VoiceLeavedEvent = {
|
|
|
6809
6809
|
break;
|
|
6810
6810
|
}
|
|
6811
6811
|
|
|
6812
|
-
message.
|
|
6812
|
+
message.ids.push(reader.string());
|
|
6813
6813
|
continue;
|
|
6814
6814
|
case 2:
|
|
6815
6815
|
if (tag !== 18) {
|
|
@@ -6843,7 +6843,7 @@ export const VoiceLeavedEvent = {
|
|
|
6843
6843
|
|
|
6844
6844
|
fromJSON(object: any): VoiceLeavedEvent {
|
|
6845
6845
|
return {
|
|
6846
|
-
|
|
6846
|
+
ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [],
|
|
6847
6847
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
6848
6848
|
voice_channel_id: isSet(object.voice_channel_id) ? globalThis.String(object.voice_channel_id) : "",
|
|
6849
6849
|
voice_user_id: isSet(object.voice_user_id) ? globalThis.String(object.voice_user_id) : "",
|
|
@@ -6852,8 +6852,8 @@ export const VoiceLeavedEvent = {
|
|
|
6852
6852
|
|
|
6853
6853
|
toJSON(message: VoiceLeavedEvent): unknown {
|
|
6854
6854
|
const obj: any = {};
|
|
6855
|
-
if (message.
|
|
6856
|
-
obj.
|
|
6855
|
+
if (message.ids?.length) {
|
|
6856
|
+
obj.ids = message.ids;
|
|
6857
6857
|
}
|
|
6858
6858
|
if (message.clan_id !== "") {
|
|
6859
6859
|
obj.clan_id = message.clan_id;
|
|
@@ -6872,7 +6872,7 @@ export const VoiceLeavedEvent = {
|
|
|
6872
6872
|
},
|
|
6873
6873
|
fromPartial<I extends Exact<DeepPartial<VoiceLeavedEvent>, I>>(object: I): VoiceLeavedEvent {
|
|
6874
6874
|
const message = createBaseVoiceLeavedEvent();
|
|
6875
|
-
message.
|
|
6875
|
+
message.ids = object.ids?.map((e) => e) || [];
|
|
6876
6876
|
message.clan_id = object.clan_id ?? "";
|
|
6877
6877
|
message.voice_channel_id = object.voice_channel_id ?? "";
|
|
6878
6878
|
message.voice_user_id = object.voice_user_id ?? "";
|