mezon-js-protobuf 1.8.54 → 1.8.56
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.
|
@@ -4070,7 +4070,8 @@ function createBaseChannelUserList_ChannelUser() {
|
|
|
4070
4070
|
clan_avatar: "",
|
|
4071
4071
|
clan_id: "",
|
|
4072
4072
|
added_by: "",
|
|
4073
|
-
is_banned: false
|
|
4073
|
+
is_banned: false,
|
|
4074
|
+
expired_ban_time: 0
|
|
4074
4075
|
};
|
|
4075
4076
|
}
|
|
4076
4077
|
var ChannelUserList_ChannelUser = {
|
|
@@ -4102,6 +4103,9 @@ var ChannelUserList_ChannelUser = {
|
|
|
4102
4103
|
if (message.is_banned !== false) {
|
|
4103
4104
|
writer.uint32(72).bool(message.is_banned);
|
|
4104
4105
|
}
|
|
4106
|
+
if (message.expired_ban_time !== 0) {
|
|
4107
|
+
writer.uint32(80).int32(message.expired_ban_time);
|
|
4108
|
+
}
|
|
4105
4109
|
return writer;
|
|
4106
4110
|
},
|
|
4107
4111
|
decode(input, length) {
|
|
@@ -4165,6 +4169,12 @@ var ChannelUserList_ChannelUser = {
|
|
|
4165
4169
|
}
|
|
4166
4170
|
message.is_banned = reader.bool();
|
|
4167
4171
|
continue;
|
|
4172
|
+
case 10:
|
|
4173
|
+
if (tag !== 80) {
|
|
4174
|
+
break;
|
|
4175
|
+
}
|
|
4176
|
+
message.expired_ban_time = reader.int32();
|
|
4177
|
+
continue;
|
|
4168
4178
|
}
|
|
4169
4179
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4170
4180
|
break;
|
|
@@ -4183,7 +4193,8 @@ var ChannelUserList_ChannelUser = {
|
|
|
4183
4193
|
clan_avatar: isSet3(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
|
|
4184
4194
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
4185
4195
|
added_by: isSet3(object.added_by) ? globalThis.String(object.added_by) : "",
|
|
4186
|
-
is_banned: isSet3(object.is_banned) ? globalThis.Boolean(object.is_banned) : false
|
|
4196
|
+
is_banned: isSet3(object.is_banned) ? globalThis.Boolean(object.is_banned) : false,
|
|
4197
|
+
expired_ban_time: isSet3(object.expired_ban_time) ? globalThis.Number(object.expired_ban_time) : 0
|
|
4187
4198
|
};
|
|
4188
4199
|
},
|
|
4189
4200
|
toJSON(message) {
|
|
@@ -4216,13 +4227,16 @@ var ChannelUserList_ChannelUser = {
|
|
|
4216
4227
|
if (message.is_banned !== false) {
|
|
4217
4228
|
obj.is_banned = message.is_banned;
|
|
4218
4229
|
}
|
|
4230
|
+
if (message.expired_ban_time !== 0) {
|
|
4231
|
+
obj.expired_ban_time = Math.round(message.expired_ban_time);
|
|
4232
|
+
}
|
|
4219
4233
|
return obj;
|
|
4220
4234
|
},
|
|
4221
4235
|
create(base) {
|
|
4222
4236
|
return ChannelUserList_ChannelUser.fromPartial(base != null ? base : {});
|
|
4223
4237
|
},
|
|
4224
4238
|
fromPartial(object) {
|
|
4225
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
4239
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
4226
4240
|
const message = createBaseChannelUserList_ChannelUser();
|
|
4227
4241
|
message.user_id = (_a = object.user_id) != null ? _a : "";
|
|
4228
4242
|
message.role_id = ((_b = object.role_id) == null ? void 0 : _b.map((e) => e)) || [];
|
|
@@ -4233,6 +4247,7 @@ var ChannelUserList_ChannelUser = {
|
|
|
4233
4247
|
message.clan_id = (_g = object.clan_id) != null ? _g : "";
|
|
4234
4248
|
message.added_by = (_h = object.added_by) != null ? _h : "";
|
|
4235
4249
|
message.is_banned = (_i = object.is_banned) != null ? _i : false;
|
|
4250
|
+
message.expired_ban_time = (_j = object.expired_ban_time) != null ? _j : 0;
|
|
4236
4251
|
return message;
|
|
4237
4252
|
}
|
|
4238
4253
|
};
|
|
@@ -15814,7 +15829,7 @@ var FollowEvent = {
|
|
|
15814
15829
|
}
|
|
15815
15830
|
};
|
|
15816
15831
|
function createBaseBannedUserEvent() {
|
|
15817
|
-
return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
|
|
15832
|
+
return { user_ids: [], action: 0, banner_id: "", channel_id: "", clan_id: "" };
|
|
15818
15833
|
}
|
|
15819
15834
|
var BannedUserEvent = {
|
|
15820
15835
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -15830,6 +15845,9 @@ var BannedUserEvent = {
|
|
|
15830
15845
|
if (message.channel_id !== "") {
|
|
15831
15846
|
writer.uint32(34).string(message.channel_id);
|
|
15832
15847
|
}
|
|
15848
|
+
if (message.clan_id !== "") {
|
|
15849
|
+
writer.uint32(42).string(message.clan_id);
|
|
15850
|
+
}
|
|
15833
15851
|
return writer;
|
|
15834
15852
|
},
|
|
15835
15853
|
decode(input, length) {
|
|
@@ -15863,6 +15881,12 @@ var BannedUserEvent = {
|
|
|
15863
15881
|
}
|
|
15864
15882
|
message.channel_id = reader.string();
|
|
15865
15883
|
continue;
|
|
15884
|
+
case 5:
|
|
15885
|
+
if (tag !== 42) {
|
|
15886
|
+
break;
|
|
15887
|
+
}
|
|
15888
|
+
message.clan_id = reader.string();
|
|
15889
|
+
continue;
|
|
15866
15890
|
}
|
|
15867
15891
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15868
15892
|
break;
|
|
@@ -15876,7 +15900,8 @@ var BannedUserEvent = {
|
|
|
15876
15900
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
15877
15901
|
action: isSet4(object.action) ? globalThis.Number(object.action) : 0,
|
|
15878
15902
|
banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : "",
|
|
15879
|
-
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
|
|
15903
|
+
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
15904
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
15880
15905
|
};
|
|
15881
15906
|
},
|
|
15882
15907
|
toJSON(message) {
|
|
@@ -15894,18 +15919,22 @@ var BannedUserEvent = {
|
|
|
15894
15919
|
if (message.channel_id !== "") {
|
|
15895
15920
|
obj.channel_id = message.channel_id;
|
|
15896
15921
|
}
|
|
15922
|
+
if (message.clan_id !== "") {
|
|
15923
|
+
obj.clan_id = message.clan_id;
|
|
15924
|
+
}
|
|
15897
15925
|
return obj;
|
|
15898
15926
|
},
|
|
15899
15927
|
create(base) {
|
|
15900
15928
|
return BannedUserEvent.fromPartial(base != null ? base : {});
|
|
15901
15929
|
},
|
|
15902
15930
|
fromPartial(object) {
|
|
15903
|
-
var _a, _b, _c, _d;
|
|
15931
|
+
var _a, _b, _c, _d, _e;
|
|
15904
15932
|
const message = createBaseBannedUserEvent();
|
|
15905
15933
|
message.user_ids = ((_a = object.user_ids) == null ? void 0 : _a.map((e) => e)) || [];
|
|
15906
15934
|
message.action = (_b = object.action) != null ? _b : 0;
|
|
15907
15935
|
message.banner_id = (_c = object.banner_id) != null ? _c : "";
|
|
15908
15936
|
message.channel_id = (_d = object.channel_id) != null ? _d : "";
|
|
15937
|
+
message.clan_id = (_e = object.clan_id) != null ? _e : "";
|
|
15909
15938
|
return message;
|
|
15910
15939
|
}
|
|
15911
15940
|
};
|
|
@@ -4057,7 +4057,8 @@ function createBaseChannelUserList_ChannelUser() {
|
|
|
4057
4057
|
clan_avatar: "",
|
|
4058
4058
|
clan_id: "",
|
|
4059
4059
|
added_by: "",
|
|
4060
|
-
is_banned: false
|
|
4060
|
+
is_banned: false,
|
|
4061
|
+
expired_ban_time: 0
|
|
4061
4062
|
};
|
|
4062
4063
|
}
|
|
4063
4064
|
var ChannelUserList_ChannelUser = {
|
|
@@ -4089,6 +4090,9 @@ var ChannelUserList_ChannelUser = {
|
|
|
4089
4090
|
if (message.is_banned !== false) {
|
|
4090
4091
|
writer.uint32(72).bool(message.is_banned);
|
|
4091
4092
|
}
|
|
4093
|
+
if (message.expired_ban_time !== 0) {
|
|
4094
|
+
writer.uint32(80).int32(message.expired_ban_time);
|
|
4095
|
+
}
|
|
4092
4096
|
return writer;
|
|
4093
4097
|
},
|
|
4094
4098
|
decode(input, length) {
|
|
@@ -4152,6 +4156,12 @@ var ChannelUserList_ChannelUser = {
|
|
|
4152
4156
|
}
|
|
4153
4157
|
message.is_banned = reader.bool();
|
|
4154
4158
|
continue;
|
|
4159
|
+
case 10:
|
|
4160
|
+
if (tag !== 80) {
|
|
4161
|
+
break;
|
|
4162
|
+
}
|
|
4163
|
+
message.expired_ban_time = reader.int32();
|
|
4164
|
+
continue;
|
|
4155
4165
|
}
|
|
4156
4166
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4157
4167
|
break;
|
|
@@ -4170,7 +4180,8 @@ var ChannelUserList_ChannelUser = {
|
|
|
4170
4180
|
clan_avatar: isSet3(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
|
|
4171
4181
|
clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
4172
4182
|
added_by: isSet3(object.added_by) ? globalThis.String(object.added_by) : "",
|
|
4173
|
-
is_banned: isSet3(object.is_banned) ? globalThis.Boolean(object.is_banned) : false
|
|
4183
|
+
is_banned: isSet3(object.is_banned) ? globalThis.Boolean(object.is_banned) : false,
|
|
4184
|
+
expired_ban_time: isSet3(object.expired_ban_time) ? globalThis.Number(object.expired_ban_time) : 0
|
|
4174
4185
|
};
|
|
4175
4186
|
},
|
|
4176
4187
|
toJSON(message) {
|
|
@@ -4203,13 +4214,16 @@ var ChannelUserList_ChannelUser = {
|
|
|
4203
4214
|
if (message.is_banned !== false) {
|
|
4204
4215
|
obj.is_banned = message.is_banned;
|
|
4205
4216
|
}
|
|
4217
|
+
if (message.expired_ban_time !== 0) {
|
|
4218
|
+
obj.expired_ban_time = Math.round(message.expired_ban_time);
|
|
4219
|
+
}
|
|
4206
4220
|
return obj;
|
|
4207
4221
|
},
|
|
4208
4222
|
create(base) {
|
|
4209
4223
|
return ChannelUserList_ChannelUser.fromPartial(base != null ? base : {});
|
|
4210
4224
|
},
|
|
4211
4225
|
fromPartial(object) {
|
|
4212
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
4226
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
4213
4227
|
const message = createBaseChannelUserList_ChannelUser();
|
|
4214
4228
|
message.user_id = (_a = object.user_id) != null ? _a : "";
|
|
4215
4229
|
message.role_id = ((_b = object.role_id) == null ? void 0 : _b.map((e) => e)) || [];
|
|
@@ -4220,6 +4234,7 @@ var ChannelUserList_ChannelUser = {
|
|
|
4220
4234
|
message.clan_id = (_g = object.clan_id) != null ? _g : "";
|
|
4221
4235
|
message.added_by = (_h = object.added_by) != null ? _h : "";
|
|
4222
4236
|
message.is_banned = (_i = object.is_banned) != null ? _i : false;
|
|
4237
|
+
message.expired_ban_time = (_j = object.expired_ban_time) != null ? _j : 0;
|
|
4223
4238
|
return message;
|
|
4224
4239
|
}
|
|
4225
4240
|
};
|
|
@@ -15801,7 +15816,7 @@ var FollowEvent = {
|
|
|
15801
15816
|
}
|
|
15802
15817
|
};
|
|
15803
15818
|
function createBaseBannedUserEvent() {
|
|
15804
|
-
return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
|
|
15819
|
+
return { user_ids: [], action: 0, banner_id: "", channel_id: "", clan_id: "" };
|
|
15805
15820
|
}
|
|
15806
15821
|
var BannedUserEvent = {
|
|
15807
15822
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -15817,6 +15832,9 @@ var BannedUserEvent = {
|
|
|
15817
15832
|
if (message.channel_id !== "") {
|
|
15818
15833
|
writer.uint32(34).string(message.channel_id);
|
|
15819
15834
|
}
|
|
15835
|
+
if (message.clan_id !== "") {
|
|
15836
|
+
writer.uint32(42).string(message.clan_id);
|
|
15837
|
+
}
|
|
15820
15838
|
return writer;
|
|
15821
15839
|
},
|
|
15822
15840
|
decode(input, length) {
|
|
@@ -15850,6 +15868,12 @@ var BannedUserEvent = {
|
|
|
15850
15868
|
}
|
|
15851
15869
|
message.channel_id = reader.string();
|
|
15852
15870
|
continue;
|
|
15871
|
+
case 5:
|
|
15872
|
+
if (tag !== 42) {
|
|
15873
|
+
break;
|
|
15874
|
+
}
|
|
15875
|
+
message.clan_id = reader.string();
|
|
15876
|
+
continue;
|
|
15853
15877
|
}
|
|
15854
15878
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15855
15879
|
break;
|
|
@@ -15863,7 +15887,8 @@ var BannedUserEvent = {
|
|
|
15863
15887
|
user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
15864
15888
|
action: isSet4(object.action) ? globalThis.Number(object.action) : 0,
|
|
15865
15889
|
banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : "",
|
|
15866
|
-
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
|
|
15890
|
+
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
15891
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
|
|
15867
15892
|
};
|
|
15868
15893
|
},
|
|
15869
15894
|
toJSON(message) {
|
|
@@ -15881,18 +15906,22 @@ var BannedUserEvent = {
|
|
|
15881
15906
|
if (message.channel_id !== "") {
|
|
15882
15907
|
obj.channel_id = message.channel_id;
|
|
15883
15908
|
}
|
|
15909
|
+
if (message.clan_id !== "") {
|
|
15910
|
+
obj.clan_id = message.clan_id;
|
|
15911
|
+
}
|
|
15884
15912
|
return obj;
|
|
15885
15913
|
},
|
|
15886
15914
|
create(base) {
|
|
15887
15915
|
return BannedUserEvent.fromPartial(base != null ? base : {});
|
|
15888
15916
|
},
|
|
15889
15917
|
fromPartial(object) {
|
|
15890
|
-
var _a, _b, _c, _d;
|
|
15918
|
+
var _a, _b, _c, _d, _e;
|
|
15891
15919
|
const message = createBaseBannedUserEvent();
|
|
15892
15920
|
message.user_ids = ((_a = object.user_ids) == null ? void 0 : _a.map((e) => e)) || [];
|
|
15893
15921
|
message.action = (_b = object.action) != null ? _b : 0;
|
|
15894
15922
|
message.banner_id = (_c = object.banner_id) != null ? _c : "";
|
|
15895
15923
|
message.channel_id = (_d = object.channel_id) != null ? _d : "";
|
|
15924
|
+
message.clan_id = (_e = object.clan_id) != null ? _e : "";
|
|
15896
15925
|
return message;
|
|
15897
15926
|
}
|
|
15898
15927
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.56",
|
|
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
|
@@ -455,6 +455,7 @@ export interface BannedUserEvent {
|
|
|
455
455
|
action: number;
|
|
456
456
|
banner_id: string;
|
|
457
457
|
channel_id: string;
|
|
458
|
+
clan_id: string;
|
|
458
459
|
}
|
|
459
460
|
|
|
460
461
|
export interface ChannelCanvas {
|
|
@@ -3566,7 +3567,7 @@ export const FollowEvent = {
|
|
|
3566
3567
|
};
|
|
3567
3568
|
|
|
3568
3569
|
function createBaseBannedUserEvent(): BannedUserEvent {
|
|
3569
|
-
return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
|
|
3570
|
+
return { user_ids: [], action: 0, banner_id: "", channel_id: "", clan_id: "" };
|
|
3570
3571
|
}
|
|
3571
3572
|
|
|
3572
3573
|
export const BannedUserEvent = {
|
|
@@ -3583,6 +3584,9 @@ export const BannedUserEvent = {
|
|
|
3583
3584
|
if (message.channel_id !== "") {
|
|
3584
3585
|
writer.uint32(34).string(message.channel_id);
|
|
3585
3586
|
}
|
|
3587
|
+
if (message.clan_id !== "") {
|
|
3588
|
+
writer.uint32(42).string(message.clan_id);
|
|
3589
|
+
}
|
|
3586
3590
|
return writer;
|
|
3587
3591
|
},
|
|
3588
3592
|
|
|
@@ -3621,6 +3625,13 @@ export const BannedUserEvent = {
|
|
|
3621
3625
|
|
|
3622
3626
|
message.channel_id = reader.string();
|
|
3623
3627
|
continue;
|
|
3628
|
+
case 5:
|
|
3629
|
+
if (tag !== 42) {
|
|
3630
|
+
break;
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
message.clan_id = reader.string();
|
|
3634
|
+
continue;
|
|
3624
3635
|
}
|
|
3625
3636
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3626
3637
|
break;
|
|
@@ -3636,6 +3647,7 @@ export const BannedUserEvent = {
|
|
|
3636
3647
|
action: isSet(object.action) ? globalThis.Number(object.action) : 0,
|
|
3637
3648
|
banner_id: isSet(object.banner_id) ? globalThis.String(object.banner_id) : "",
|
|
3638
3649
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
3650
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
3639
3651
|
};
|
|
3640
3652
|
},
|
|
3641
3653
|
|
|
@@ -3653,6 +3665,9 @@ export const BannedUserEvent = {
|
|
|
3653
3665
|
if (message.channel_id !== "") {
|
|
3654
3666
|
obj.channel_id = message.channel_id;
|
|
3655
3667
|
}
|
|
3668
|
+
if (message.clan_id !== "") {
|
|
3669
|
+
obj.clan_id = message.clan_id;
|
|
3670
|
+
}
|
|
3656
3671
|
return obj;
|
|
3657
3672
|
},
|
|
3658
3673
|
|
|
@@ -3665,6 +3680,7 @@ export const BannedUserEvent = {
|
|
|
3665
3680
|
message.action = object.action ?? 0;
|
|
3666
3681
|
message.banner_id = object.banner_id ?? "";
|
|
3667
3682
|
message.channel_id = object.channel_id ?? "";
|
|
3683
|
+
message.clan_id = object.clan_id ?? "";
|
|
3668
3684
|
return message;
|
|
3669
3685
|
},
|
|
3670
3686
|
};
|