mezon-js-protobuf 1.8.53 → 1.8.55

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.
@@ -9791,21 +9791,15 @@ var NotificationChannelCategorySetting = {
9791
9791
  }
9792
9792
  };
9793
9793
  function createBaseRoleList() {
9794
- return { roles: [], next_cursor: "", prev_cursor: "", cacheable_cursor: "" };
9794
+ return { roles: [], max_level_permission: 0 };
9795
9795
  }
9796
9796
  var RoleList = {
9797
9797
  encode(message, writer = import_minimal4.default.Writer.create()) {
9798
9798
  for (const v of message.roles) {
9799
9799
  Role.encode(v, writer.uint32(10).fork()).ldelim();
9800
9800
  }
9801
- if (message.next_cursor !== "") {
9802
- writer.uint32(18).string(message.next_cursor);
9803
- }
9804
- if (message.prev_cursor !== "") {
9805
- writer.uint32(26).string(message.prev_cursor);
9806
- }
9807
- if (message.cacheable_cursor !== "") {
9808
- writer.uint32(34).string(message.cacheable_cursor);
9801
+ if (message.max_level_permission !== 0) {
9802
+ writer.uint32(16).int32(message.max_level_permission);
9809
9803
  }
9810
9804
  return writer;
9811
9805
  },
@@ -9823,22 +9817,10 @@ var RoleList = {
9823
9817
  message.roles.push(Role.decode(reader, reader.uint32()));
9824
9818
  continue;
9825
9819
  case 2:
9826
- if (tag !== 18) {
9827
- break;
9828
- }
9829
- message.next_cursor = reader.string();
9830
- continue;
9831
- case 3:
9832
- if (tag !== 26) {
9833
- break;
9834
- }
9835
- message.prev_cursor = reader.string();
9836
- continue;
9837
- case 4:
9838
- if (tag !== 34) {
9820
+ if (tag !== 16) {
9839
9821
  break;
9840
9822
  }
9841
- message.cacheable_cursor = reader.string();
9823
+ message.max_level_permission = reader.int32();
9842
9824
  continue;
9843
9825
  }
9844
9826
  if ((tag & 7) === 4 || tag === 0) {
@@ -9851,9 +9833,7 @@ var RoleList = {
9851
9833
  fromJSON(object) {
9852
9834
  return {
9853
9835
  roles: globalThis.Array.isArray(object == null ? void 0 : object.roles) ? object.roles.map((e) => Role.fromJSON(e)) : [],
9854
- next_cursor: isSet3(object.next_cursor) ? globalThis.String(object.next_cursor) : "",
9855
- prev_cursor: isSet3(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
9856
- cacheable_cursor: isSet3(object.cacheable_cursor) ? globalThis.String(object.cacheable_cursor) : ""
9836
+ max_level_permission: isSet3(object.max_level_permission) ? globalThis.Number(object.max_level_permission) : 0
9857
9837
  };
9858
9838
  },
9859
9839
  toJSON(message) {
@@ -9862,14 +9842,8 @@ var RoleList = {
9862
9842
  if ((_a = message.roles) == null ? void 0 : _a.length) {
9863
9843
  obj.roles = message.roles.map((e) => Role.toJSON(e));
9864
9844
  }
9865
- if (message.next_cursor !== "") {
9866
- obj.next_cursor = message.next_cursor;
9867
- }
9868
- if (message.prev_cursor !== "") {
9869
- obj.prev_cursor = message.prev_cursor;
9870
- }
9871
- if (message.cacheable_cursor !== "") {
9872
- obj.cacheable_cursor = message.cacheable_cursor;
9845
+ if (message.max_level_permission !== 0) {
9846
+ obj.max_level_permission = Math.round(message.max_level_permission);
9873
9847
  }
9874
9848
  return obj;
9875
9849
  },
@@ -9877,12 +9851,10 @@ var RoleList = {
9877
9851
  return RoleList.fromPartial(base != null ? base : {});
9878
9852
  },
9879
9853
  fromPartial(object) {
9880
- var _a, _b, _c, _d;
9854
+ var _a, _b;
9881
9855
  const message = createBaseRoleList();
9882
9856
  message.roles = ((_a = object.roles) == null ? void 0 : _a.map((e) => Role.fromPartial(e))) || [];
9883
- message.next_cursor = (_b = object.next_cursor) != null ? _b : "";
9884
- message.prev_cursor = (_c = object.prev_cursor) != null ? _c : "";
9885
- message.cacheable_cursor = (_d = object.cacheable_cursor) != null ? _d : "";
9857
+ message.max_level_permission = (_b = object.max_level_permission) != null ? _b : 0;
9886
9858
  return message;
9887
9859
  }
9888
9860
  };
@@ -15842,7 +15814,7 @@ var FollowEvent = {
15842
15814
  }
15843
15815
  };
15844
15816
  function createBaseBannedUserEvent() {
15845
- return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
15817
+ return { user_ids: [], action: 0, banner_id: "", channel_id: "", clan_id: "" };
15846
15818
  }
15847
15819
  var BannedUserEvent = {
15848
15820
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -15858,6 +15830,9 @@ var BannedUserEvent = {
15858
15830
  if (message.channel_id !== "") {
15859
15831
  writer.uint32(34).string(message.channel_id);
15860
15832
  }
15833
+ if (message.clan_id !== "") {
15834
+ writer.uint32(42).string(message.clan_id);
15835
+ }
15861
15836
  return writer;
15862
15837
  },
15863
15838
  decode(input, length) {
@@ -15891,6 +15866,12 @@ var BannedUserEvent = {
15891
15866
  }
15892
15867
  message.channel_id = reader.string();
15893
15868
  continue;
15869
+ case 5:
15870
+ if (tag !== 42) {
15871
+ break;
15872
+ }
15873
+ message.clan_id = reader.string();
15874
+ continue;
15894
15875
  }
15895
15876
  if ((tag & 7) === 4 || tag === 0) {
15896
15877
  break;
@@ -15904,7 +15885,8 @@ var BannedUserEvent = {
15904
15885
  user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
15905
15886
  action: isSet4(object.action) ? globalThis.Number(object.action) : 0,
15906
15887
  banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : "",
15907
- channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
15888
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
15889
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
15908
15890
  };
15909
15891
  },
15910
15892
  toJSON(message) {
@@ -15922,18 +15904,22 @@ var BannedUserEvent = {
15922
15904
  if (message.channel_id !== "") {
15923
15905
  obj.channel_id = message.channel_id;
15924
15906
  }
15907
+ if (message.clan_id !== "") {
15908
+ obj.clan_id = message.clan_id;
15909
+ }
15925
15910
  return obj;
15926
15911
  },
15927
15912
  create(base) {
15928
15913
  return BannedUserEvent.fromPartial(base != null ? base : {});
15929
15914
  },
15930
15915
  fromPartial(object) {
15931
- var _a, _b, _c, _d;
15916
+ var _a, _b, _c, _d, _e;
15932
15917
  const message = createBaseBannedUserEvent();
15933
15918
  message.user_ids = ((_a = object.user_ids) == null ? void 0 : _a.map((e) => e)) || [];
15934
15919
  message.action = (_b = object.action) != null ? _b : 0;
15935
15920
  message.banner_id = (_c = object.banner_id) != null ? _c : "";
15936
15921
  message.channel_id = (_d = object.channel_id) != null ? _d : "";
15922
+ message.clan_id = (_e = object.clan_id) != null ? _e : "";
15937
15923
  return message;
15938
15924
  }
15939
15925
  };
@@ -22171,8 +22157,7 @@ function createBaseUserChannelAdded() {
22171
22157
  clan_id: "",
22172
22158
  caller: void 0,
22173
22159
  create_time_second: 0,
22174
- active: 0,
22175
- member_count: 0
22160
+ active: 0
22176
22161
  };
22177
22162
  }
22178
22163
  var UserChannelAdded = {
@@ -22198,9 +22183,6 @@ var UserChannelAdded = {
22198
22183
  if (message.active !== 0) {
22199
22184
  writer.uint32(56).int32(message.active);
22200
22185
  }
22201
- if (message.member_count !== 0) {
22202
- writer.uint32(64).int32(message.member_count);
22203
- }
22204
22186
  return writer;
22205
22187
  },
22206
22188
  decode(input, length) {
@@ -22252,12 +22234,6 @@ var UserChannelAdded = {
22252
22234
  }
22253
22235
  message.active = reader.int32();
22254
22236
  continue;
22255
- case 8:
22256
- if (tag !== 64) {
22257
- break;
22258
- }
22259
- message.member_count = reader.int32();
22260
- continue;
22261
22237
  }
22262
22238
  if ((tag & 7) === 4 || tag === 0) {
22263
22239
  break;
@@ -22274,8 +22250,7 @@ var UserChannelAdded = {
22274
22250
  clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
22275
22251
  caller: isSet4(object.caller) ? UserProfileRedis.fromJSON(object.caller) : void 0,
22276
22252
  create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
22277
- active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
22278
- member_count: isSet4(object.member_count) ? globalThis.Number(object.member_count) : 0
22253
+ active: isSet4(object.active) ? globalThis.Number(object.active) : 0
22279
22254
  };
22280
22255
  },
22281
22256
  toJSON(message) {
@@ -22302,16 +22277,13 @@ var UserChannelAdded = {
22302
22277
  if (message.active !== 0) {
22303
22278
  obj.active = Math.round(message.active);
22304
22279
  }
22305
- if (message.member_count !== 0) {
22306
- obj.member_count = Math.round(message.member_count);
22307
- }
22308
22280
  return obj;
22309
22281
  },
22310
22282
  create(base) {
22311
22283
  return UserChannelAdded.fromPartial(base != null ? base : {});
22312
22284
  },
22313
22285
  fromPartial(object) {
22314
- var _a, _b, _c, _d, _e, _f;
22286
+ var _a, _b, _c, _d, _e;
22315
22287
  const message = createBaseUserChannelAdded();
22316
22288
  message.channel_desc = object.channel_desc !== void 0 && object.channel_desc !== null ? ChannelDescription.fromPartial(object.channel_desc) : void 0;
22317
22289
  message.users = ((_a = object.users) == null ? void 0 : _a.map((e) => UserProfileRedis.fromPartial(e))) || [];
@@ -22320,7 +22292,6 @@ var UserChannelAdded = {
22320
22292
  message.caller = object.caller !== void 0 && object.caller !== null ? UserProfileRedis.fromPartial(object.caller) : void 0;
22321
22293
  message.create_time_second = (_d = object.create_time_second) != null ? _d : 0;
22322
22294
  message.active = (_e = object.active) != null ? _e : 0;
22323
- message.member_count = (_f = object.member_count) != null ? _f : 0;
22324
22295
  return message;
22325
22296
  }
22326
22297
  };
@@ -9778,21 +9778,15 @@ var NotificationChannelCategorySetting = {
9778
9778
  }
9779
9779
  };
9780
9780
  function createBaseRoleList() {
9781
- return { roles: [], next_cursor: "", prev_cursor: "", cacheable_cursor: "" };
9781
+ return { roles: [], max_level_permission: 0 };
9782
9782
  }
9783
9783
  var RoleList = {
9784
9784
  encode(message, writer = import_minimal4.default.Writer.create()) {
9785
9785
  for (const v of message.roles) {
9786
9786
  Role.encode(v, writer.uint32(10).fork()).ldelim();
9787
9787
  }
9788
- if (message.next_cursor !== "") {
9789
- writer.uint32(18).string(message.next_cursor);
9790
- }
9791
- if (message.prev_cursor !== "") {
9792
- writer.uint32(26).string(message.prev_cursor);
9793
- }
9794
- if (message.cacheable_cursor !== "") {
9795
- writer.uint32(34).string(message.cacheable_cursor);
9788
+ if (message.max_level_permission !== 0) {
9789
+ writer.uint32(16).int32(message.max_level_permission);
9796
9790
  }
9797
9791
  return writer;
9798
9792
  },
@@ -9810,22 +9804,10 @@ var RoleList = {
9810
9804
  message.roles.push(Role.decode(reader, reader.uint32()));
9811
9805
  continue;
9812
9806
  case 2:
9813
- if (tag !== 18) {
9814
- break;
9815
- }
9816
- message.next_cursor = reader.string();
9817
- continue;
9818
- case 3:
9819
- if (tag !== 26) {
9820
- break;
9821
- }
9822
- message.prev_cursor = reader.string();
9823
- continue;
9824
- case 4:
9825
- if (tag !== 34) {
9807
+ if (tag !== 16) {
9826
9808
  break;
9827
9809
  }
9828
- message.cacheable_cursor = reader.string();
9810
+ message.max_level_permission = reader.int32();
9829
9811
  continue;
9830
9812
  }
9831
9813
  if ((tag & 7) === 4 || tag === 0) {
@@ -9838,9 +9820,7 @@ var RoleList = {
9838
9820
  fromJSON(object) {
9839
9821
  return {
9840
9822
  roles: globalThis.Array.isArray(object == null ? void 0 : object.roles) ? object.roles.map((e) => Role.fromJSON(e)) : [],
9841
- next_cursor: isSet3(object.next_cursor) ? globalThis.String(object.next_cursor) : "",
9842
- prev_cursor: isSet3(object.prev_cursor) ? globalThis.String(object.prev_cursor) : "",
9843
- cacheable_cursor: isSet3(object.cacheable_cursor) ? globalThis.String(object.cacheable_cursor) : ""
9823
+ max_level_permission: isSet3(object.max_level_permission) ? globalThis.Number(object.max_level_permission) : 0
9844
9824
  };
9845
9825
  },
9846
9826
  toJSON(message) {
@@ -9849,14 +9829,8 @@ var RoleList = {
9849
9829
  if ((_a = message.roles) == null ? void 0 : _a.length) {
9850
9830
  obj.roles = message.roles.map((e) => Role.toJSON(e));
9851
9831
  }
9852
- if (message.next_cursor !== "") {
9853
- obj.next_cursor = message.next_cursor;
9854
- }
9855
- if (message.prev_cursor !== "") {
9856
- obj.prev_cursor = message.prev_cursor;
9857
- }
9858
- if (message.cacheable_cursor !== "") {
9859
- obj.cacheable_cursor = message.cacheable_cursor;
9832
+ if (message.max_level_permission !== 0) {
9833
+ obj.max_level_permission = Math.round(message.max_level_permission);
9860
9834
  }
9861
9835
  return obj;
9862
9836
  },
@@ -9864,12 +9838,10 @@ var RoleList = {
9864
9838
  return RoleList.fromPartial(base != null ? base : {});
9865
9839
  },
9866
9840
  fromPartial(object) {
9867
- var _a, _b, _c, _d;
9841
+ var _a, _b;
9868
9842
  const message = createBaseRoleList();
9869
9843
  message.roles = ((_a = object.roles) == null ? void 0 : _a.map((e) => Role.fromPartial(e))) || [];
9870
- message.next_cursor = (_b = object.next_cursor) != null ? _b : "";
9871
- message.prev_cursor = (_c = object.prev_cursor) != null ? _c : "";
9872
- message.cacheable_cursor = (_d = object.cacheable_cursor) != null ? _d : "";
9844
+ message.max_level_permission = (_b = object.max_level_permission) != null ? _b : 0;
9873
9845
  return message;
9874
9846
  }
9875
9847
  };
@@ -15829,7 +15801,7 @@ var FollowEvent = {
15829
15801
  }
15830
15802
  };
15831
15803
  function createBaseBannedUserEvent() {
15832
- return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
15804
+ return { user_ids: [], action: 0, banner_id: "", channel_id: "", clan_id: "" };
15833
15805
  }
15834
15806
  var BannedUserEvent = {
15835
15807
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -15845,6 +15817,9 @@ var BannedUserEvent = {
15845
15817
  if (message.channel_id !== "") {
15846
15818
  writer.uint32(34).string(message.channel_id);
15847
15819
  }
15820
+ if (message.clan_id !== "") {
15821
+ writer.uint32(42).string(message.clan_id);
15822
+ }
15848
15823
  return writer;
15849
15824
  },
15850
15825
  decode(input, length) {
@@ -15878,6 +15853,12 @@ var BannedUserEvent = {
15878
15853
  }
15879
15854
  message.channel_id = reader.string();
15880
15855
  continue;
15856
+ case 5:
15857
+ if (tag !== 42) {
15858
+ break;
15859
+ }
15860
+ message.clan_id = reader.string();
15861
+ continue;
15881
15862
  }
15882
15863
  if ((tag & 7) === 4 || tag === 0) {
15883
15864
  break;
@@ -15891,7 +15872,8 @@ var BannedUserEvent = {
15891
15872
  user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
15892
15873
  action: isSet4(object.action) ? globalThis.Number(object.action) : 0,
15893
15874
  banner_id: isSet4(object.banner_id) ? globalThis.String(object.banner_id) : "",
15894
- channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
15875
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
15876
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : ""
15895
15877
  };
15896
15878
  },
15897
15879
  toJSON(message) {
@@ -15909,18 +15891,22 @@ var BannedUserEvent = {
15909
15891
  if (message.channel_id !== "") {
15910
15892
  obj.channel_id = message.channel_id;
15911
15893
  }
15894
+ if (message.clan_id !== "") {
15895
+ obj.clan_id = message.clan_id;
15896
+ }
15912
15897
  return obj;
15913
15898
  },
15914
15899
  create(base) {
15915
15900
  return BannedUserEvent.fromPartial(base != null ? base : {});
15916
15901
  },
15917
15902
  fromPartial(object) {
15918
- var _a, _b, _c, _d;
15903
+ var _a, _b, _c, _d, _e;
15919
15904
  const message = createBaseBannedUserEvent();
15920
15905
  message.user_ids = ((_a = object.user_ids) == null ? void 0 : _a.map((e) => e)) || [];
15921
15906
  message.action = (_b = object.action) != null ? _b : 0;
15922
15907
  message.banner_id = (_c = object.banner_id) != null ? _c : "";
15923
15908
  message.channel_id = (_d = object.channel_id) != null ? _d : "";
15909
+ message.clan_id = (_e = object.clan_id) != null ? _e : "";
15924
15910
  return message;
15925
15911
  }
15926
15912
  };
@@ -22158,8 +22144,7 @@ function createBaseUserChannelAdded() {
22158
22144
  clan_id: "",
22159
22145
  caller: void 0,
22160
22146
  create_time_second: 0,
22161
- active: 0,
22162
- member_count: 0
22147
+ active: 0
22163
22148
  };
22164
22149
  }
22165
22150
  var UserChannelAdded = {
@@ -22185,9 +22170,6 @@ var UserChannelAdded = {
22185
22170
  if (message.active !== 0) {
22186
22171
  writer.uint32(56).int32(message.active);
22187
22172
  }
22188
- if (message.member_count !== 0) {
22189
- writer.uint32(64).int32(message.member_count);
22190
- }
22191
22173
  return writer;
22192
22174
  },
22193
22175
  decode(input, length) {
@@ -22239,12 +22221,6 @@ var UserChannelAdded = {
22239
22221
  }
22240
22222
  message.active = reader.int32();
22241
22223
  continue;
22242
- case 8:
22243
- if (tag !== 64) {
22244
- break;
22245
- }
22246
- message.member_count = reader.int32();
22247
- continue;
22248
22224
  }
22249
22225
  if ((tag & 7) === 4 || tag === 0) {
22250
22226
  break;
@@ -22261,8 +22237,7 @@ var UserChannelAdded = {
22261
22237
  clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
22262
22238
  caller: isSet4(object.caller) ? UserProfileRedis.fromJSON(object.caller) : void 0,
22263
22239
  create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
22264
- active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
22265
- member_count: isSet4(object.member_count) ? globalThis.Number(object.member_count) : 0
22240
+ active: isSet4(object.active) ? globalThis.Number(object.active) : 0
22266
22241
  };
22267
22242
  },
22268
22243
  toJSON(message) {
@@ -22289,16 +22264,13 @@ var UserChannelAdded = {
22289
22264
  if (message.active !== 0) {
22290
22265
  obj.active = Math.round(message.active);
22291
22266
  }
22292
- if (message.member_count !== 0) {
22293
- obj.member_count = Math.round(message.member_count);
22294
- }
22295
22267
  return obj;
22296
22268
  },
22297
22269
  create(base) {
22298
22270
  return UserChannelAdded.fromPartial(base != null ? base : {});
22299
22271
  },
22300
22272
  fromPartial(object) {
22301
- var _a, _b, _c, _d, _e, _f;
22273
+ var _a, _b, _c, _d, _e;
22302
22274
  const message = createBaseUserChannelAdded();
22303
22275
  message.channel_desc = object.channel_desc !== void 0 && object.channel_desc !== null ? ChannelDescription.fromPartial(object.channel_desc) : void 0;
22304
22276
  message.users = ((_a = object.users) == null ? void 0 : _a.map((e) => UserProfileRedis.fromPartial(e))) || [];
@@ -22307,7 +22279,6 @@ var UserChannelAdded = {
22307
22279
  message.caller = object.caller !== void 0 && object.caller !== null ? UserProfileRedis.fromPartial(object.caller) : void 0;
22308
22280
  message.create_time_second = (_d = object.create_time_second) != null ? _d : 0;
22309
22281
  message.active = (_e = object.active) != null ? _e : 0;
22310
- message.member_count = (_f = object.member_count) != null ? _f : 0;
22311
22282
  return message;
22312
22283
  }
22313
22284
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.53",
3
+ "version": "1.8.55",
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 {
@@ -1389,8 +1390,6 @@ export interface UserChannelAdded {
1389
1390
  create_time_second: number;
1390
1391
  /** */
1391
1392
  active: number;
1392
- /** member count for GROUP */
1393
- member_count: number;
1394
1393
  }
1395
1394
 
1396
1395
  /** */
@@ -3568,7 +3567,7 @@ export const FollowEvent = {
3568
3567
  };
3569
3568
 
3570
3569
  function createBaseBannedUserEvent(): BannedUserEvent {
3571
- return { user_ids: [], action: 0, banner_id: "", channel_id: "" };
3570
+ return { user_ids: [], action: 0, banner_id: "", channel_id: "", clan_id: "" };
3572
3571
  }
3573
3572
 
3574
3573
  export const BannedUserEvent = {
@@ -3585,6 +3584,9 @@ export const BannedUserEvent = {
3585
3584
  if (message.channel_id !== "") {
3586
3585
  writer.uint32(34).string(message.channel_id);
3587
3586
  }
3587
+ if (message.clan_id !== "") {
3588
+ writer.uint32(42).string(message.clan_id);
3589
+ }
3588
3590
  return writer;
3589
3591
  },
3590
3592
 
@@ -3623,6 +3625,13 @@ export const BannedUserEvent = {
3623
3625
 
3624
3626
  message.channel_id = reader.string();
3625
3627
  continue;
3628
+ case 5:
3629
+ if (tag !== 42) {
3630
+ break;
3631
+ }
3632
+
3633
+ message.clan_id = reader.string();
3634
+ continue;
3626
3635
  }
3627
3636
  if ((tag & 7) === 4 || tag === 0) {
3628
3637
  break;
@@ -3638,6 +3647,7 @@ export const BannedUserEvent = {
3638
3647
  action: isSet(object.action) ? globalThis.Number(object.action) : 0,
3639
3648
  banner_id: isSet(object.banner_id) ? globalThis.String(object.banner_id) : "",
3640
3649
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
3650
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
3641
3651
  };
3642
3652
  },
3643
3653
 
@@ -3655,6 +3665,9 @@ export const BannedUserEvent = {
3655
3665
  if (message.channel_id !== "") {
3656
3666
  obj.channel_id = message.channel_id;
3657
3667
  }
3668
+ if (message.clan_id !== "") {
3669
+ obj.clan_id = message.clan_id;
3670
+ }
3658
3671
  return obj;
3659
3672
  },
3660
3673
 
@@ -3667,6 +3680,7 @@ export const BannedUserEvent = {
3667
3680
  message.action = object.action ?? 0;
3668
3681
  message.banner_id = object.banner_id ?? "";
3669
3682
  message.channel_id = object.channel_id ?? "";
3683
+ message.clan_id = object.clan_id ?? "";
3670
3684
  return message;
3671
3685
  },
3672
3686
  };
@@ -11226,7 +11240,6 @@ function createBaseUserChannelAdded(): UserChannelAdded {
11226
11240
  caller: undefined,
11227
11241
  create_time_second: 0,
11228
11242
  active: 0,
11229
- member_count: 0,
11230
11243
  };
11231
11244
  }
11232
11245
 
@@ -11253,9 +11266,6 @@ export const UserChannelAdded = {
11253
11266
  if (message.active !== 0) {
11254
11267
  writer.uint32(56).int32(message.active);
11255
11268
  }
11256
- if (message.member_count !== 0) {
11257
- writer.uint32(64).int32(message.member_count);
11258
- }
11259
11269
  return writer;
11260
11270
  },
11261
11271
 
@@ -11315,13 +11325,6 @@ export const UserChannelAdded = {
11315
11325
 
11316
11326
  message.active = reader.int32();
11317
11327
  continue;
11318
- case 8:
11319
- if (tag !== 64) {
11320
- break;
11321
- }
11322
-
11323
- message.member_count = reader.int32();
11324
- continue;
11325
11328
  }
11326
11329
  if ((tag & 7) === 4 || tag === 0) {
11327
11330
  break;
@@ -11340,7 +11343,6 @@ export const UserChannelAdded = {
11340
11343
  caller: isSet(object.caller) ? UserProfileRedis.fromJSON(object.caller) : undefined,
11341
11344
  create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
11342
11345
  active: isSet(object.active) ? globalThis.Number(object.active) : 0,
11343
- member_count: isSet(object.member_count) ? globalThis.Number(object.member_count) : 0,
11344
11346
  };
11345
11347
  },
11346
11348
 
@@ -11367,9 +11369,6 @@ export const UserChannelAdded = {
11367
11369
  if (message.active !== 0) {
11368
11370
  obj.active = Math.round(message.active);
11369
11371
  }
11370
- if (message.member_count !== 0) {
11371
- obj.member_count = Math.round(message.member_count);
11372
- }
11373
11372
  return obj;
11374
11373
  },
11375
11374
 
@@ -11389,7 +11388,6 @@ export const UserChannelAdded = {
11389
11388
  : undefined;
11390
11389
  message.create_time_second = object.create_time_second ?? 0;
11391
11390
  message.active = object.active ?? 0;
11392
- message.member_count = object.member_count ?? 0;
11393
11391
  return message;
11394
11392
  },
11395
11393
  };