mezon-js-protobuf 1.7.31 → 1.7.33

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.
@@ -4772,7 +4772,8 @@ function createBaseRole() {
4772
4772
  permission_list: void 0,
4773
4773
  role_channel_active: 0,
4774
4774
  channel_ids: [],
4775
- max_level_permission: 0
4775
+ max_level_permission: 0,
4776
+ order_role: 0
4776
4777
  };
4777
4778
  }
4778
4779
  var Role = {
@@ -4825,6 +4826,9 @@ var Role = {
4825
4826
  if (message.max_level_permission !== 0) {
4826
4827
  writer.uint32(128).int32(message.max_level_permission);
4827
4828
  }
4829
+ if (message.order_role !== 0) {
4830
+ writer.uint32(136).int32(message.order_role);
4831
+ }
4828
4832
  return writer;
4829
4833
  },
4830
4834
  decode(input, length) {
@@ -4930,6 +4934,12 @@ var Role = {
4930
4934
  }
4931
4935
  message.max_level_permission = reader.int32();
4932
4936
  continue;
4937
+ case 17:
4938
+ if (tag !== 136) {
4939
+ break;
4940
+ }
4941
+ message.order_role = reader.int32();
4942
+ continue;
4933
4943
  }
4934
4944
  if ((tag & 7) === 4 || tag === 0) {
4935
4945
  break;
@@ -4955,7 +4965,8 @@ var Role = {
4955
4965
  permission_list: isSet3(object.permission_list) ? PermissionList.fromJSON(object.permission_list) : void 0,
4956
4966
  role_channel_active: isSet3(object.role_channel_active) ? globalThis.Number(object.role_channel_active) : 0,
4957
4967
  channel_ids: globalThis.Array.isArray(object == null ? void 0 : object.channel_ids) ? object.channel_ids.map((e) => globalThis.String(e)) : [],
4958
- max_level_permission: isSet3(object.max_level_permission) ? globalThis.Number(object.max_level_permission) : 0
4968
+ max_level_permission: isSet3(object.max_level_permission) ? globalThis.Number(object.max_level_permission) : 0,
4969
+ order_role: isSet3(object.order_role) ? globalThis.Number(object.order_role) : 0
4959
4970
  };
4960
4971
  },
4961
4972
  toJSON(message) {
@@ -5009,13 +5020,16 @@ var Role = {
5009
5020
  if (message.max_level_permission !== 0) {
5010
5021
  obj.max_level_permission = Math.round(message.max_level_permission);
5011
5022
  }
5023
+ if (message.order_role !== 0) {
5024
+ obj.order_role = Math.round(message.order_role);
5025
+ }
5012
5026
  return obj;
5013
5027
  },
5014
5028
  create(base) {
5015
5029
  return Role.fromPartial(base != null ? base : {});
5016
5030
  },
5017
5031
  fromPartial(object) {
5018
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
5032
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
5019
5033
  const message = createBaseRole();
5020
5034
  message.id = (_a = object.id) != null ? _a : "";
5021
5035
  message.title = (_b = object.title) != null ? _b : "";
@@ -5033,6 +5047,7 @@ var Role = {
5033
5047
  message.role_channel_active = (_l = object.role_channel_active) != null ? _l : 0;
5034
5048
  message.channel_ids = ((_m = object.channel_ids) == null ? void 0 : _m.map((e) => e)) || [];
5035
5049
  message.max_level_permission = (_n = object.max_level_permission) != null ? _n : 0;
5050
+ message.order_role = (_o = object.order_role) != null ? _o : 0;
5036
5051
  return message;
5037
5052
  }
5038
5053
  };
@@ -6633,7 +6648,8 @@ function createBaseEnvelope() {
6633
6648
  join_channel_app_data: void 0,
6634
6649
  canvas_event: void 0,
6635
6650
  unpin_message_event: void 0,
6636
- category_event: void 0
6651
+ category_event: void 0,
6652
+ handle_participant_meet_state_event: void 0
6637
6653
  };
6638
6654
  }
6639
6655
  var Envelope = {
@@ -6866,6 +6882,9 @@ var Envelope = {
6866
6882
  if (message.category_event !== void 0) {
6867
6883
  CategoryEvent.encode(message.category_event, writer.uint32(610).fork()).ldelim();
6868
6884
  }
6885
+ if (message.handle_participant_meet_state_event !== void 0) {
6886
+ HandleParticipantMeetStateEvent.encode(message.handle_participant_meet_state_event, writer.uint32(618).fork()).ldelim();
6887
+ }
6869
6888
  return writer;
6870
6889
  },
6871
6890
  decode(input, length) {
@@ -7331,6 +7350,12 @@ var Envelope = {
7331
7350
  }
7332
7351
  message.category_event = CategoryEvent.decode(reader, reader.uint32());
7333
7352
  continue;
7353
+ case 77:
7354
+ if (tag !== 618) {
7355
+ break;
7356
+ }
7357
+ message.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.decode(reader, reader.uint32());
7358
+ continue;
7334
7359
  }
7335
7360
  if ((tag & 7) === 4 || tag === 0) {
7336
7361
  break;
@@ -7416,7 +7441,8 @@ var Envelope = {
7416
7441
  join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0,
7417
7442
  canvas_event: isSet4(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : void 0,
7418
7443
  unpin_message_event: isSet4(object.unpin_message_event) ? UnpinMessageEvent.fromJSON(object.unpin_message_event) : void 0,
7419
- category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0
7444
+ category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0,
7445
+ handle_participant_meet_state_event: isSet4(object.handle_participant_meet_state_event) ? HandleParticipantMeetStateEvent.fromJSON(object.handle_participant_meet_state_event) : void 0
7420
7446
  };
7421
7447
  },
7422
7448
  toJSON(message) {
@@ -7649,6 +7675,11 @@ var Envelope = {
7649
7675
  if (message.category_event !== void 0) {
7650
7676
  obj.category_event = CategoryEvent.toJSON(message.category_event);
7651
7677
  }
7678
+ if (message.handle_participant_meet_state_event !== void 0) {
7679
+ obj.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.toJSON(
7680
+ message.handle_participant_meet_state_event
7681
+ );
7682
+ }
7652
7683
  return obj;
7653
7684
  },
7654
7685
  create(base) {
@@ -7733,6 +7764,7 @@ var Envelope = {
7733
7764
  message.canvas_event = object.canvas_event !== void 0 && object.canvas_event !== null ? ChannelCanvas.fromPartial(object.canvas_event) : void 0;
7734
7765
  message.unpin_message_event = object.unpin_message_event !== void 0 && object.unpin_message_event !== null ? UnpinMessageEvent.fromPartial(object.unpin_message_event) : void 0;
7735
7766
  message.category_event = object.category_event !== void 0 && object.category_event !== null ? CategoryEvent.fromPartial(object.category_event) : void 0;
7767
+ message.handle_participant_meet_state_event = object.handle_participant_meet_state_event !== void 0 && object.handle_participant_meet_state_event !== null ? HandleParticipantMeetStateEvent.fromPartial(object.handle_participant_meet_state_event) : void 0;
7736
7768
  return message;
7737
7769
  }
7738
7770
  };
@@ -15591,6 +15623,101 @@ var UnpinMessageEvent = {
15591
15623
  return message;
15592
15624
  }
15593
15625
  };
15626
+ function createBaseHandleParticipantMeetStateEvent() {
15627
+ return { clan_id: "", channel_id: "", display_name: "", state: 0 };
15628
+ }
15629
+ var HandleParticipantMeetStateEvent = {
15630
+ encode(message, writer = import_minimal5.default.Writer.create()) {
15631
+ if (message.clan_id !== "") {
15632
+ writer.uint32(10).string(message.clan_id);
15633
+ }
15634
+ if (message.channel_id !== "") {
15635
+ writer.uint32(18).string(message.channel_id);
15636
+ }
15637
+ if (message.display_name !== "") {
15638
+ writer.uint32(26).string(message.display_name);
15639
+ }
15640
+ if (message.state !== 0) {
15641
+ writer.uint32(32).int32(message.state);
15642
+ }
15643
+ return writer;
15644
+ },
15645
+ decode(input, length) {
15646
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
15647
+ let end = length === void 0 ? reader.len : reader.pos + length;
15648
+ const message = createBaseHandleParticipantMeetStateEvent();
15649
+ while (reader.pos < end) {
15650
+ const tag = reader.uint32();
15651
+ switch (tag >>> 3) {
15652
+ case 1:
15653
+ if (tag !== 10) {
15654
+ break;
15655
+ }
15656
+ message.clan_id = reader.string();
15657
+ continue;
15658
+ case 2:
15659
+ if (tag !== 18) {
15660
+ break;
15661
+ }
15662
+ message.channel_id = reader.string();
15663
+ continue;
15664
+ case 3:
15665
+ if (tag !== 26) {
15666
+ break;
15667
+ }
15668
+ message.display_name = reader.string();
15669
+ continue;
15670
+ case 4:
15671
+ if (tag !== 32) {
15672
+ break;
15673
+ }
15674
+ message.state = reader.int32();
15675
+ continue;
15676
+ }
15677
+ if ((tag & 7) === 4 || tag === 0) {
15678
+ break;
15679
+ }
15680
+ reader.skipType(tag & 7);
15681
+ }
15682
+ return message;
15683
+ },
15684
+ fromJSON(object) {
15685
+ return {
15686
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
15687
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
15688
+ display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
15689
+ state: isSet4(object.state) ? globalThis.Number(object.state) : 0
15690
+ };
15691
+ },
15692
+ toJSON(message) {
15693
+ const obj = {};
15694
+ if (message.clan_id !== "") {
15695
+ obj.clan_id = message.clan_id;
15696
+ }
15697
+ if (message.channel_id !== "") {
15698
+ obj.channel_id = message.channel_id;
15699
+ }
15700
+ if (message.display_name !== "") {
15701
+ obj.display_name = message.display_name;
15702
+ }
15703
+ if (message.state !== 0) {
15704
+ obj.state = Math.round(message.state);
15705
+ }
15706
+ return obj;
15707
+ },
15708
+ create(base) {
15709
+ return HandleParticipantMeetStateEvent.fromPartial(base != null ? base : {});
15710
+ },
15711
+ fromPartial(object) {
15712
+ var _a, _b, _c, _d;
15713
+ const message = createBaseHandleParticipantMeetStateEvent();
15714
+ message.clan_id = (_a = object.clan_id) != null ? _a : "";
15715
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
15716
+ message.display_name = (_c = object.display_name) != null ? _c : "";
15717
+ message.state = (_d = object.state) != null ? _d : 0;
15718
+ return message;
15719
+ }
15720
+ };
15594
15721
  function toTimestamp2(date) {
15595
15722
  const seconds = Math.trunc(date.getTime() / 1e3);
15596
15723
  const nanos = date.getTime() % 1e3 * 1e6;
@@ -4759,7 +4759,8 @@ function createBaseRole() {
4759
4759
  permission_list: void 0,
4760
4760
  role_channel_active: 0,
4761
4761
  channel_ids: [],
4762
- max_level_permission: 0
4762
+ max_level_permission: 0,
4763
+ order_role: 0
4763
4764
  };
4764
4765
  }
4765
4766
  var Role = {
@@ -4812,6 +4813,9 @@ var Role = {
4812
4813
  if (message.max_level_permission !== 0) {
4813
4814
  writer.uint32(128).int32(message.max_level_permission);
4814
4815
  }
4816
+ if (message.order_role !== 0) {
4817
+ writer.uint32(136).int32(message.order_role);
4818
+ }
4815
4819
  return writer;
4816
4820
  },
4817
4821
  decode(input, length) {
@@ -4917,6 +4921,12 @@ var Role = {
4917
4921
  }
4918
4922
  message.max_level_permission = reader.int32();
4919
4923
  continue;
4924
+ case 17:
4925
+ if (tag !== 136) {
4926
+ break;
4927
+ }
4928
+ message.order_role = reader.int32();
4929
+ continue;
4920
4930
  }
4921
4931
  if ((tag & 7) === 4 || tag === 0) {
4922
4932
  break;
@@ -4942,7 +4952,8 @@ var Role = {
4942
4952
  permission_list: isSet3(object.permission_list) ? PermissionList.fromJSON(object.permission_list) : void 0,
4943
4953
  role_channel_active: isSet3(object.role_channel_active) ? globalThis.Number(object.role_channel_active) : 0,
4944
4954
  channel_ids: globalThis.Array.isArray(object == null ? void 0 : object.channel_ids) ? object.channel_ids.map((e) => globalThis.String(e)) : [],
4945
- max_level_permission: isSet3(object.max_level_permission) ? globalThis.Number(object.max_level_permission) : 0
4955
+ max_level_permission: isSet3(object.max_level_permission) ? globalThis.Number(object.max_level_permission) : 0,
4956
+ order_role: isSet3(object.order_role) ? globalThis.Number(object.order_role) : 0
4946
4957
  };
4947
4958
  },
4948
4959
  toJSON(message) {
@@ -4996,13 +5007,16 @@ var Role = {
4996
5007
  if (message.max_level_permission !== 0) {
4997
5008
  obj.max_level_permission = Math.round(message.max_level_permission);
4998
5009
  }
5010
+ if (message.order_role !== 0) {
5011
+ obj.order_role = Math.round(message.order_role);
5012
+ }
4999
5013
  return obj;
5000
5014
  },
5001
5015
  create(base) {
5002
5016
  return Role.fromPartial(base != null ? base : {});
5003
5017
  },
5004
5018
  fromPartial(object) {
5005
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
5019
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
5006
5020
  const message = createBaseRole();
5007
5021
  message.id = (_a = object.id) != null ? _a : "";
5008
5022
  message.title = (_b = object.title) != null ? _b : "";
@@ -5020,6 +5034,7 @@ var Role = {
5020
5034
  message.role_channel_active = (_l = object.role_channel_active) != null ? _l : 0;
5021
5035
  message.channel_ids = ((_m = object.channel_ids) == null ? void 0 : _m.map((e) => e)) || [];
5022
5036
  message.max_level_permission = (_n = object.max_level_permission) != null ? _n : 0;
5037
+ message.order_role = (_o = object.order_role) != null ? _o : 0;
5023
5038
  return message;
5024
5039
  }
5025
5040
  };
@@ -6620,7 +6635,8 @@ function createBaseEnvelope() {
6620
6635
  join_channel_app_data: void 0,
6621
6636
  canvas_event: void 0,
6622
6637
  unpin_message_event: void 0,
6623
- category_event: void 0
6638
+ category_event: void 0,
6639
+ handle_participant_meet_state_event: void 0
6624
6640
  };
6625
6641
  }
6626
6642
  var Envelope = {
@@ -6853,6 +6869,9 @@ var Envelope = {
6853
6869
  if (message.category_event !== void 0) {
6854
6870
  CategoryEvent.encode(message.category_event, writer.uint32(610).fork()).ldelim();
6855
6871
  }
6872
+ if (message.handle_participant_meet_state_event !== void 0) {
6873
+ HandleParticipantMeetStateEvent.encode(message.handle_participant_meet_state_event, writer.uint32(618).fork()).ldelim();
6874
+ }
6856
6875
  return writer;
6857
6876
  },
6858
6877
  decode(input, length) {
@@ -7318,6 +7337,12 @@ var Envelope = {
7318
7337
  }
7319
7338
  message.category_event = CategoryEvent.decode(reader, reader.uint32());
7320
7339
  continue;
7340
+ case 77:
7341
+ if (tag !== 618) {
7342
+ break;
7343
+ }
7344
+ message.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.decode(reader, reader.uint32());
7345
+ continue;
7321
7346
  }
7322
7347
  if ((tag & 7) === 4 || tag === 0) {
7323
7348
  break;
@@ -7403,7 +7428,8 @@ var Envelope = {
7403
7428
  join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0,
7404
7429
  canvas_event: isSet4(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : void 0,
7405
7430
  unpin_message_event: isSet4(object.unpin_message_event) ? UnpinMessageEvent.fromJSON(object.unpin_message_event) : void 0,
7406
- category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0
7431
+ category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0,
7432
+ handle_participant_meet_state_event: isSet4(object.handle_participant_meet_state_event) ? HandleParticipantMeetStateEvent.fromJSON(object.handle_participant_meet_state_event) : void 0
7407
7433
  };
7408
7434
  },
7409
7435
  toJSON(message) {
@@ -7636,6 +7662,11 @@ var Envelope = {
7636
7662
  if (message.category_event !== void 0) {
7637
7663
  obj.category_event = CategoryEvent.toJSON(message.category_event);
7638
7664
  }
7665
+ if (message.handle_participant_meet_state_event !== void 0) {
7666
+ obj.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.toJSON(
7667
+ message.handle_participant_meet_state_event
7668
+ );
7669
+ }
7639
7670
  return obj;
7640
7671
  },
7641
7672
  create(base) {
@@ -7720,6 +7751,7 @@ var Envelope = {
7720
7751
  message.canvas_event = object.canvas_event !== void 0 && object.canvas_event !== null ? ChannelCanvas.fromPartial(object.canvas_event) : void 0;
7721
7752
  message.unpin_message_event = object.unpin_message_event !== void 0 && object.unpin_message_event !== null ? UnpinMessageEvent.fromPartial(object.unpin_message_event) : void 0;
7722
7753
  message.category_event = object.category_event !== void 0 && object.category_event !== null ? CategoryEvent.fromPartial(object.category_event) : void 0;
7754
+ message.handle_participant_meet_state_event = object.handle_participant_meet_state_event !== void 0 && object.handle_participant_meet_state_event !== null ? HandleParticipantMeetStateEvent.fromPartial(object.handle_participant_meet_state_event) : void 0;
7723
7755
  return message;
7724
7756
  }
7725
7757
  };
@@ -15578,6 +15610,101 @@ var UnpinMessageEvent = {
15578
15610
  return message;
15579
15611
  }
15580
15612
  };
15613
+ function createBaseHandleParticipantMeetStateEvent() {
15614
+ return { clan_id: "", channel_id: "", display_name: "", state: 0 };
15615
+ }
15616
+ var HandleParticipantMeetStateEvent = {
15617
+ encode(message, writer = import_minimal5.default.Writer.create()) {
15618
+ if (message.clan_id !== "") {
15619
+ writer.uint32(10).string(message.clan_id);
15620
+ }
15621
+ if (message.channel_id !== "") {
15622
+ writer.uint32(18).string(message.channel_id);
15623
+ }
15624
+ if (message.display_name !== "") {
15625
+ writer.uint32(26).string(message.display_name);
15626
+ }
15627
+ if (message.state !== 0) {
15628
+ writer.uint32(32).int32(message.state);
15629
+ }
15630
+ return writer;
15631
+ },
15632
+ decode(input, length) {
15633
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
15634
+ let end = length === void 0 ? reader.len : reader.pos + length;
15635
+ const message = createBaseHandleParticipantMeetStateEvent();
15636
+ while (reader.pos < end) {
15637
+ const tag = reader.uint32();
15638
+ switch (tag >>> 3) {
15639
+ case 1:
15640
+ if (tag !== 10) {
15641
+ break;
15642
+ }
15643
+ message.clan_id = reader.string();
15644
+ continue;
15645
+ case 2:
15646
+ if (tag !== 18) {
15647
+ break;
15648
+ }
15649
+ message.channel_id = reader.string();
15650
+ continue;
15651
+ case 3:
15652
+ if (tag !== 26) {
15653
+ break;
15654
+ }
15655
+ message.display_name = reader.string();
15656
+ continue;
15657
+ case 4:
15658
+ if (tag !== 32) {
15659
+ break;
15660
+ }
15661
+ message.state = reader.int32();
15662
+ continue;
15663
+ }
15664
+ if ((tag & 7) === 4 || tag === 0) {
15665
+ break;
15666
+ }
15667
+ reader.skipType(tag & 7);
15668
+ }
15669
+ return message;
15670
+ },
15671
+ fromJSON(object) {
15672
+ return {
15673
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
15674
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
15675
+ display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
15676
+ state: isSet4(object.state) ? globalThis.Number(object.state) : 0
15677
+ };
15678
+ },
15679
+ toJSON(message) {
15680
+ const obj = {};
15681
+ if (message.clan_id !== "") {
15682
+ obj.clan_id = message.clan_id;
15683
+ }
15684
+ if (message.channel_id !== "") {
15685
+ obj.channel_id = message.channel_id;
15686
+ }
15687
+ if (message.display_name !== "") {
15688
+ obj.display_name = message.display_name;
15689
+ }
15690
+ if (message.state !== 0) {
15691
+ obj.state = Math.round(message.state);
15692
+ }
15693
+ return obj;
15694
+ },
15695
+ create(base) {
15696
+ return HandleParticipantMeetStateEvent.fromPartial(base != null ? base : {});
15697
+ },
15698
+ fromPartial(object) {
15699
+ var _a, _b, _c, _d;
15700
+ const message = createBaseHandleParticipantMeetStateEvent();
15701
+ message.clan_id = (_a = object.clan_id) != null ? _a : "";
15702
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
15703
+ message.display_name = (_c = object.display_name) != null ? _c : "";
15704
+ message.state = (_d = object.state) != null ? _d : 0;
15705
+ return message;
15706
+ }
15707
+ };
15581
15708
  function toTimestamp2(date) {
15582
15709
  const seconds = Math.trunc(date.getTime() / 1e3);
15583
15710
  const nanos = date.getTime() % 1e3 * 1e6;