mezon-js-protobuf 1.8.50 → 1.8.51
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/package.json +1 -1
- package/rtapi/realtime.ts +17 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.51",
|
|
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
|
@@ -454,6 +454,7 @@ export interface BannedUserEvent {
|
|
|
454
454
|
user_ids: string[];
|
|
455
455
|
action: number;
|
|
456
456
|
banner_id: string;
|
|
457
|
+
channel_id: string;
|
|
457
458
|
}
|
|
458
459
|
|
|
459
460
|
export interface ChannelCanvas {
|
|
@@ -3563,7 +3564,7 @@ export const FollowEvent = {
|
|
|
3563
3564
|
};
|
|
3564
3565
|
|
|
3565
3566
|
function createBaseBannedUserEvent(): BannedUserEvent {
|
|
3566
|
-
return { user_ids: [], action: 0, banner_id: "" };
|
|
3567
|
+
return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
|
|
3567
3568
|
}
|
|
3568
3569
|
|
|
3569
3570
|
export const BannedUserEvent = {
|
|
@@ -3577,6 +3578,9 @@ export const BannedUserEvent = {
|
|
|
3577
3578
|
if (message.banner_id !== "") {
|
|
3578
3579
|
writer.uint32(26).string(message.banner_id);
|
|
3579
3580
|
}
|
|
3581
|
+
if (message.channel_id !== "") {
|
|
3582
|
+
writer.uint32(34).string(message.channel_id);
|
|
3583
|
+
}
|
|
3580
3584
|
return writer;
|
|
3581
3585
|
},
|
|
3582
3586
|
|
|
@@ -3608,6 +3612,13 @@ export const BannedUserEvent = {
|
|
|
3608
3612
|
|
|
3609
3613
|
message.banner_id = reader.string();
|
|
3610
3614
|
continue;
|
|
3615
|
+
case 4:
|
|
3616
|
+
if (tag !== 34) {
|
|
3617
|
+
break;
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
message.channel_id = reader.string();
|
|
3621
|
+
continue;
|
|
3611
3622
|
}
|
|
3612
3623
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3613
3624
|
break;
|
|
@@ -3622,6 +3633,7 @@ export const BannedUserEvent = {
|
|
|
3622
3633
|
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
|
|
3623
3634
|
action: isSet(object.action) ? globalThis.Number(object.action) : 0,
|
|
3624
3635
|
banner_id: isSet(object.banner_id) ? globalThis.String(object.banner_id) : "",
|
|
3636
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3625
3637
|
};
|
|
3626
3638
|
},
|
|
3627
3639
|
|
|
@@ -3636,6 +3648,9 @@ export const BannedUserEvent = {
|
|
|
3636
3648
|
if (message.banner_id !== "") {
|
|
3637
3649
|
obj.banner_id = message.banner_id;
|
|
3638
3650
|
}
|
|
3651
|
+
if (message.channel_id !== "") {
|
|
3652
|
+
obj.channel_id = message.channel_id;
|
|
3653
|
+
}
|
|
3639
3654
|
return obj;
|
|
3640
3655
|
},
|
|
3641
3656
|
|
|
@@ -3647,6 +3662,7 @@ export const BannedUserEvent = {
|
|
|
3647
3662
|
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
3648
3663
|
message.action = object.action ?? 0;
|
|
3649
3664
|
message.banner_id = object.banner_id ?? "";
|
|
3665
|
+
message.channel_id = object.channel_id ?? "";
|
|
3650
3666
|
return message;
|
|
3651
3667
|
},
|
|
3652
3668
|
};
|