mezon-sdk 2.7.88 → 2.7.90

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.
@@ -10384,6 +10384,7 @@ function createBaseClanDesc() {
10384
10384
  is_onboarding: false,
10385
10385
  welcome_channel_id: "",
10386
10386
  onboarding_banner: "",
10387
+ clan_order: 0,
10387
10388
  };
10388
10389
  }
10389
10390
  export const ClanDesc = {
@@ -10418,6 +10419,9 @@ export const ClanDesc = {
10418
10419
  if (message.onboarding_banner !== "") {
10419
10420
  writer.uint32(82).string(message.onboarding_banner);
10420
10421
  }
10422
+ if (message.clan_order !== 0) {
10423
+ writer.uint32(88).int32(message.clan_order);
10424
+ }
10421
10425
  return writer;
10422
10426
  },
10423
10427
  decode(input, length) {
@@ -10487,6 +10491,12 @@ export const ClanDesc = {
10487
10491
  }
10488
10492
  message.onboarding_banner = reader.string();
10489
10493
  continue;
10494
+ case 11:
10495
+ if (tag !== 88) {
10496
+ break;
10497
+ }
10498
+ message.clan_order = reader.int32();
10499
+ continue;
10490
10500
  }
10491
10501
  if ((tag & 7) === 4 || tag === 0) {
10492
10502
  break;
@@ -10507,6 +10517,7 @@ export const ClanDesc = {
10507
10517
  is_onboarding: isSet(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
10508
10518
  welcome_channel_id: isSet(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
10509
10519
  onboarding_banner: isSet(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
10520
+ clan_order: isSet(object.clan_order) ? globalThis.Number(object.clan_order) : 0,
10510
10521
  };
10511
10522
  },
10512
10523
  toJSON(message) {
@@ -10541,6 +10552,9 @@ export const ClanDesc = {
10541
10552
  if (message.onboarding_banner !== "") {
10542
10553
  obj.onboarding_banner = message.onboarding_banner;
10543
10554
  }
10555
+ if (message.clan_order !== 0) {
10556
+ obj.clan_order = Math.round(message.clan_order);
10557
+ }
10544
10558
  return obj;
10545
10559
  },
10546
10560
  create(base) {
@@ -10558,6 +10572,7 @@ export const ClanDesc = {
10558
10572
  message.is_onboarding = object.is_onboarding ?? false;
10559
10573
  message.welcome_channel_id = object.welcome_channel_id ?? "";
10560
10574
  message.onboarding_banner = object.onboarding_banner ?? "";
10575
+ message.clan_order = object.clan_order ?? 0;
10561
10576
  return message;
10562
10577
  },
10563
10578
  };
@@ -11692,6 +11707,126 @@ export const UpdateClanProfileRequest = {
11692
11707
  return message;
11693
11708
  },
11694
11709
  };
11710
+ function createBaseUpdateClanOrderRequest() {
11711
+ return { clans_order: [] };
11712
+ }
11713
+ export const UpdateClanOrderRequest = {
11714
+ encode(message, writer = _m0.Writer.create()) {
11715
+ for (const v of message.clans_order) {
11716
+ UpdateClanOrderRequest_ClanOrder.encode(v, writer.uint32(10).fork()).ldelim();
11717
+ }
11718
+ return writer;
11719
+ },
11720
+ decode(input, length) {
11721
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
11722
+ let end = length === undefined ? reader.len : reader.pos + length;
11723
+ const message = createBaseUpdateClanOrderRequest();
11724
+ while (reader.pos < end) {
11725
+ const tag = reader.uint32();
11726
+ switch (tag >>> 3) {
11727
+ case 1:
11728
+ if (tag !== 10) {
11729
+ break;
11730
+ }
11731
+ message.clans_order.push(UpdateClanOrderRequest_ClanOrder.decode(reader, reader.uint32()));
11732
+ continue;
11733
+ }
11734
+ if ((tag & 7) === 4 || tag === 0) {
11735
+ break;
11736
+ }
11737
+ reader.skipType(tag & 7);
11738
+ }
11739
+ return message;
11740
+ },
11741
+ fromJSON(object) {
11742
+ return {
11743
+ clans_order: globalThis.Array.isArray(object?.clans_order)
11744
+ ? object.clans_order.map((e) => UpdateClanOrderRequest_ClanOrder.fromJSON(e))
11745
+ : [],
11746
+ };
11747
+ },
11748
+ toJSON(message) {
11749
+ const obj = {};
11750
+ if (message.clans_order?.length) {
11751
+ obj.clans_order = message.clans_order.map((e) => UpdateClanOrderRequest_ClanOrder.toJSON(e));
11752
+ }
11753
+ return obj;
11754
+ },
11755
+ create(base) {
11756
+ return UpdateClanOrderRequest.fromPartial(base ?? {});
11757
+ },
11758
+ fromPartial(object) {
11759
+ const message = createBaseUpdateClanOrderRequest();
11760
+ message.clans_order = object.clans_order?.map((e) => UpdateClanOrderRequest_ClanOrder.fromPartial(e)) || [];
11761
+ return message;
11762
+ },
11763
+ };
11764
+ function createBaseUpdateClanOrderRequest_ClanOrder() {
11765
+ return { order: 0, clan_id: "" };
11766
+ }
11767
+ export const UpdateClanOrderRequest_ClanOrder = {
11768
+ encode(message, writer = _m0.Writer.create()) {
11769
+ if (message.order !== 0) {
11770
+ writer.uint32(8).int32(message.order);
11771
+ }
11772
+ if (message.clan_id !== "") {
11773
+ writer.uint32(18).string(message.clan_id);
11774
+ }
11775
+ return writer;
11776
+ },
11777
+ decode(input, length) {
11778
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
11779
+ let end = length === undefined ? reader.len : reader.pos + length;
11780
+ const message = createBaseUpdateClanOrderRequest_ClanOrder();
11781
+ while (reader.pos < end) {
11782
+ const tag = reader.uint32();
11783
+ switch (tag >>> 3) {
11784
+ case 1:
11785
+ if (tag !== 8) {
11786
+ break;
11787
+ }
11788
+ message.order = reader.int32();
11789
+ continue;
11790
+ case 2:
11791
+ if (tag !== 18) {
11792
+ break;
11793
+ }
11794
+ message.clan_id = reader.string();
11795
+ continue;
11796
+ }
11797
+ if ((tag & 7) === 4 || tag === 0) {
11798
+ break;
11799
+ }
11800
+ reader.skipType(tag & 7);
11801
+ }
11802
+ return message;
11803
+ },
11804
+ fromJSON(object) {
11805
+ return {
11806
+ order: isSet(object.order) ? globalThis.Number(object.order) : 0,
11807
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
11808
+ };
11809
+ },
11810
+ toJSON(message) {
11811
+ const obj = {};
11812
+ if (message.order !== 0) {
11813
+ obj.order = Math.round(message.order);
11814
+ }
11815
+ if (message.clan_id !== "") {
11816
+ obj.clan_id = message.clan_id;
11817
+ }
11818
+ return obj;
11819
+ },
11820
+ create(base) {
11821
+ return UpdateClanOrderRequest_ClanOrder.fromPartial(base ?? {});
11822
+ },
11823
+ fromPartial(object) {
11824
+ const message = createBaseUpdateClanOrderRequest_ClanOrder();
11825
+ message.order = object.order ?? 0;
11826
+ message.clan_id = object.clan_id ?? "";
11827
+ return message;
11828
+ },
11829
+ };
11695
11830
  function createBaseCategoryDesc() {
11696
11831
  return { creator_id: "", clan_id: "", category_name: "", category_id: "", category_order: 0 };
11697
11832
  }
@@ -11868,6 +12003,138 @@ export const UpdateCategoryOrderRequest = {
11868
12003
  return message;
11869
12004
  },
11870
12005
  };
12006
+ function createBaseUpdateRoleOrderRequest() {
12007
+ return { clan_id: "", roles: [] };
12008
+ }
12009
+ export const UpdateRoleOrderRequest = {
12010
+ encode(message, writer = _m0.Writer.create()) {
12011
+ if (message.clan_id !== "") {
12012
+ writer.uint32(10).string(message.clan_id);
12013
+ }
12014
+ for (const v of message.roles) {
12015
+ RoleOrderUpdate.encode(v, writer.uint32(18).fork()).ldelim();
12016
+ }
12017
+ return writer;
12018
+ },
12019
+ decode(input, length) {
12020
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
12021
+ let end = length === undefined ? reader.len : reader.pos + length;
12022
+ const message = createBaseUpdateRoleOrderRequest();
12023
+ while (reader.pos < end) {
12024
+ const tag = reader.uint32();
12025
+ switch (tag >>> 3) {
12026
+ case 1:
12027
+ if (tag !== 10) {
12028
+ break;
12029
+ }
12030
+ message.clan_id = reader.string();
12031
+ continue;
12032
+ case 2:
12033
+ if (tag !== 18) {
12034
+ break;
12035
+ }
12036
+ message.roles.push(RoleOrderUpdate.decode(reader, reader.uint32()));
12037
+ continue;
12038
+ }
12039
+ if ((tag & 7) === 4 || tag === 0) {
12040
+ break;
12041
+ }
12042
+ reader.skipType(tag & 7);
12043
+ }
12044
+ return message;
12045
+ },
12046
+ fromJSON(object) {
12047
+ return {
12048
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
12049
+ roles: globalThis.Array.isArray(object?.roles) ? object.roles.map((e) => RoleOrderUpdate.fromJSON(e)) : [],
12050
+ };
12051
+ },
12052
+ toJSON(message) {
12053
+ const obj = {};
12054
+ if (message.clan_id !== "") {
12055
+ obj.clan_id = message.clan_id;
12056
+ }
12057
+ if (message.roles?.length) {
12058
+ obj.roles = message.roles.map((e) => RoleOrderUpdate.toJSON(e));
12059
+ }
12060
+ return obj;
12061
+ },
12062
+ create(base) {
12063
+ return UpdateRoleOrderRequest.fromPartial(base ?? {});
12064
+ },
12065
+ fromPartial(object) {
12066
+ const message = createBaseUpdateRoleOrderRequest();
12067
+ message.clan_id = object.clan_id ?? "";
12068
+ message.roles = object.roles?.map((e) => RoleOrderUpdate.fromPartial(e)) || [];
12069
+ return message;
12070
+ },
12071
+ };
12072
+ function createBaseRoleOrderUpdate() {
12073
+ return { role_id: "", order: 0 };
12074
+ }
12075
+ export const RoleOrderUpdate = {
12076
+ encode(message, writer = _m0.Writer.create()) {
12077
+ if (message.role_id !== "") {
12078
+ writer.uint32(10).string(message.role_id);
12079
+ }
12080
+ if (message.order !== 0) {
12081
+ writer.uint32(16).int32(message.order);
12082
+ }
12083
+ return writer;
12084
+ },
12085
+ decode(input, length) {
12086
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
12087
+ let end = length === undefined ? reader.len : reader.pos + length;
12088
+ const message = createBaseRoleOrderUpdate();
12089
+ while (reader.pos < end) {
12090
+ const tag = reader.uint32();
12091
+ switch (tag >>> 3) {
12092
+ case 1:
12093
+ if (tag !== 10) {
12094
+ break;
12095
+ }
12096
+ message.role_id = reader.string();
12097
+ continue;
12098
+ case 2:
12099
+ if (tag !== 16) {
12100
+ break;
12101
+ }
12102
+ message.order = reader.int32();
12103
+ continue;
12104
+ }
12105
+ if ((tag & 7) === 4 || tag === 0) {
12106
+ break;
12107
+ }
12108
+ reader.skipType(tag & 7);
12109
+ }
12110
+ return message;
12111
+ },
12112
+ fromJSON(object) {
12113
+ return {
12114
+ role_id: isSet(object.role_id) ? globalThis.String(object.role_id) : "",
12115
+ order: isSet(object.order) ? globalThis.Number(object.order) : 0,
12116
+ };
12117
+ },
12118
+ toJSON(message) {
12119
+ const obj = {};
12120
+ if (message.role_id !== "") {
12121
+ obj.role_id = message.role_id;
12122
+ }
12123
+ if (message.order !== 0) {
12124
+ obj.order = Math.round(message.order);
12125
+ }
12126
+ return obj;
12127
+ },
12128
+ create(base) {
12129
+ return RoleOrderUpdate.fromPartial(base ?? {});
12130
+ },
12131
+ fromPartial(object) {
12132
+ const message = createBaseRoleOrderUpdate();
12133
+ message.role_id = object.role_id ?? "";
12134
+ message.order = object.order ?? 0;
12135
+ return message;
12136
+ },
12137
+ };
11871
12138
  function createBaseCategoryOrderUpdate() {
11872
12139
  return { category_id: "", order: 0 };
11873
12140
  }
@@ -12221,7 +12488,7 @@ function createBaseChannelMessageHeader() {
12221
12488
  sender_id: "",
12222
12489
  content: "",
12223
12490
  attachment: "",
12224
- referece: "",
12491
+ reference: "",
12225
12492
  mention: "",
12226
12493
  reaction: "",
12227
12494
  repliers: [],
@@ -12244,8 +12511,8 @@ export const ChannelMessageHeader = {
12244
12511
  if (message.attachment !== "") {
12245
12512
  writer.uint32(42).string(message.attachment);
12246
12513
  }
12247
- if (message.referece !== "") {
12248
- writer.uint32(50).string(message.referece);
12514
+ if (message.reference !== "") {
12515
+ writer.uint32(50).string(message.reference);
12249
12516
  }
12250
12517
  if (message.mention !== "") {
12251
12518
  writer.uint32(58).string(message.mention);
@@ -12299,7 +12566,7 @@ export const ChannelMessageHeader = {
12299
12566
  if (tag !== 50) {
12300
12567
  break;
12301
12568
  }
12302
- message.referece = reader.string();
12569
+ message.reference = reader.string();
12303
12570
  continue;
12304
12571
  case 7:
12305
12572
  if (tag !== 58) {
@@ -12334,7 +12601,7 @@ export const ChannelMessageHeader = {
12334
12601
  sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
12335
12602
  content: isSet(object.content) ? globalThis.String(object.content) : "",
12336
12603
  attachment: isSet(object.attachment) ? globalThis.String(object.attachment) : "",
12337
- referece: isSet(object.referece) ? globalThis.String(object.referece) : "",
12604
+ reference: isSet(object.reference) ? globalThis.String(object.reference) : "",
12338
12605
  mention: isSet(object.mention) ? globalThis.String(object.mention) : "",
12339
12606
  reaction: isSet(object.reaction) ? globalThis.String(object.reaction) : "",
12340
12607
  repliers: globalThis.Array.isArray(object?.repliers) ? object.repliers.map((e) => globalThis.String(e)) : [],
@@ -12357,8 +12624,8 @@ export const ChannelMessageHeader = {
12357
12624
  if (message.attachment !== "") {
12358
12625
  obj.attachment = message.attachment;
12359
12626
  }
12360
- if (message.referece !== "") {
12361
- obj.referece = message.referece;
12627
+ if (message.reference !== "") {
12628
+ obj.reference = message.reference;
12362
12629
  }
12363
12630
  if (message.mention !== "") {
12364
12631
  obj.mention = message.mention;
@@ -12381,7 +12648,7 @@ export const ChannelMessageHeader = {
12381
12648
  message.sender_id = object.sender_id ?? "";
12382
12649
  message.content = object.content ?? "";
12383
12650
  message.attachment = object.attachment ?? "";
12384
- message.referece = object.referece ?? "";
12651
+ message.reference = object.reference ?? "";
12385
12652
  message.mention = object.mention ?? "";
12386
12653
  message.reaction = object.reaction ?? "";
12387
12654
  message.repliers = object.repliers?.map((e) => e) || [];
@@ -12415,7 +12682,7 @@ function createBaseChannelDescription() {
12415
12682
  metadata: [],
12416
12683
  about_me: [],
12417
12684
  clan_name: "",
12418
- app_url: "",
12685
+ app_id: "",
12419
12686
  is_mute: false,
12420
12687
  age_restricted: 0,
12421
12688
  topic: "",
@@ -12502,8 +12769,8 @@ export const ChannelDescription = {
12502
12769
  if (message.clan_name !== "") {
12503
12770
  writer.uint32(202).string(message.clan_name);
12504
12771
  }
12505
- if (message.app_url !== "") {
12506
- writer.uint32(210).string(message.app_url);
12772
+ if (message.app_id !== "") {
12773
+ writer.uint32(210).string(message.app_id);
12507
12774
  }
12508
12775
  if (message.is_mute !== false) {
12509
12776
  writer.uint32(216).bool(message.is_mute);
@@ -12690,7 +12957,7 @@ export const ChannelDescription = {
12690
12957
  if (tag !== 210) {
12691
12958
  break;
12692
12959
  }
12693
- message.app_url = reader.string();
12960
+ message.app_id = reader.string();
12694
12961
  continue;
12695
12962
  case 27:
12696
12963
  if (tag !== 216) {
@@ -12769,7 +13036,7 @@ export const ChannelDescription = {
12769
13036
  : [],
12770
13037
  about_me: globalThis.Array.isArray(object?.about_me) ? object.about_me.map((e) => globalThis.String(e)) : [],
12771
13038
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
12772
- app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
13039
+ app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
12773
13040
  is_mute: isSet(object.is_mute) ? globalThis.Boolean(object.is_mute) : false,
12774
13041
  age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
12775
13042
  topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
@@ -12856,8 +13123,8 @@ export const ChannelDescription = {
12856
13123
  if (message.clan_name !== "") {
12857
13124
  obj.clan_name = message.clan_name;
12858
13125
  }
12859
- if (message.app_url !== "") {
12860
- obj.app_url = message.app_url;
13126
+ if (message.app_id !== "") {
13127
+ obj.app_id = message.app_id;
12861
13128
  }
12862
13129
  if (message.is_mute !== false) {
12863
13130
  obj.is_mute = message.is_mute;
@@ -12910,7 +13177,7 @@ export const ChannelDescription = {
12910
13177
  message.metadata = object.metadata?.map((e) => e) || [];
12911
13178
  message.about_me = object.about_me?.map((e) => e) || [];
12912
13179
  message.clan_name = object.clan_name ?? "";
12913
- message.app_url = object.app_url ?? "";
13180
+ message.app_id = object.app_id ?? "";
12914
13181
  message.is_mute = object.is_mute ?? false;
12915
13182
  message.age_restricted = object.age_restricted ?? 0;
12916
13183
  message.topic = object.topic ?? "";
@@ -13259,23 +13526,20 @@ export const ListChannelDescsRequest = {
13259
13526
  return message;
13260
13527
  },
13261
13528
  };
13262
- function createBaseAddRoleChannelDescRequest() {
13263
- return { role_ids: [], channel_id: "" };
13529
+ function createBaseListChannelDetailRequest() {
13530
+ return { channel_id: "" };
13264
13531
  }
13265
- export const AddRoleChannelDescRequest = {
13532
+ export const ListChannelDetailRequest = {
13266
13533
  encode(message, writer = _m0.Writer.create()) {
13267
- for (const v of message.role_ids) {
13268
- writer.uint32(10).string(v);
13269
- }
13270
13534
  if (message.channel_id !== "") {
13271
- writer.uint32(18).string(message.channel_id);
13535
+ writer.uint32(10).string(message.channel_id);
13272
13536
  }
13273
13537
  return writer;
13274
13538
  },
13275
13539
  decode(input, length) {
13276
13540
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
13277
13541
  let end = length === undefined ? reader.len : reader.pos + length;
13278
- const message = createBaseAddRoleChannelDescRequest();
13542
+ const message = createBaseListChannelDetailRequest();
13279
13543
  while (reader.pos < end) {
13280
13544
  const tag = reader.uint32();
13281
13545
  switch (tag >>> 3) {
@@ -13283,12 +13547,6 @@ export const AddRoleChannelDescRequest = {
13283
13547
  if (tag !== 10) {
13284
13548
  break;
13285
13549
  }
13286
- message.role_ids.push(reader.string());
13287
- continue;
13288
- case 2:
13289
- if (tag !== 18) {
13290
- break;
13291
- }
13292
13550
  message.channel_id = reader.string();
13293
13551
  continue;
13294
13552
  }
@@ -13300,14 +13558,73 @@ export const AddRoleChannelDescRequest = {
13300
13558
  return message;
13301
13559
  },
13302
13560
  fromJSON(object) {
13303
- return {
13304
- role_ids: globalThis.Array.isArray(object?.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : [],
13305
- channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
13306
- };
13561
+ return { channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "" };
13307
13562
  },
13308
13563
  toJSON(message) {
13309
13564
  const obj = {};
13310
- if (message.role_ids?.length) {
13565
+ if (message.channel_id !== "") {
13566
+ obj.channel_id = message.channel_id;
13567
+ }
13568
+ return obj;
13569
+ },
13570
+ create(base) {
13571
+ return ListChannelDetailRequest.fromPartial(base ?? {});
13572
+ },
13573
+ fromPartial(object) {
13574
+ const message = createBaseListChannelDetailRequest();
13575
+ message.channel_id = object.channel_id ?? "";
13576
+ return message;
13577
+ },
13578
+ };
13579
+ function createBaseAddRoleChannelDescRequest() {
13580
+ return { role_ids: [], channel_id: "" };
13581
+ }
13582
+ export const AddRoleChannelDescRequest = {
13583
+ encode(message, writer = _m0.Writer.create()) {
13584
+ for (const v of message.role_ids) {
13585
+ writer.uint32(10).string(v);
13586
+ }
13587
+ if (message.channel_id !== "") {
13588
+ writer.uint32(18).string(message.channel_id);
13589
+ }
13590
+ return writer;
13591
+ },
13592
+ decode(input, length) {
13593
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
13594
+ let end = length === undefined ? reader.len : reader.pos + length;
13595
+ const message = createBaseAddRoleChannelDescRequest();
13596
+ while (reader.pos < end) {
13597
+ const tag = reader.uint32();
13598
+ switch (tag >>> 3) {
13599
+ case 1:
13600
+ if (tag !== 10) {
13601
+ break;
13602
+ }
13603
+ message.role_ids.push(reader.string());
13604
+ continue;
13605
+ case 2:
13606
+ if (tag !== 18) {
13607
+ break;
13608
+ }
13609
+ message.channel_id = reader.string();
13610
+ continue;
13611
+ }
13612
+ if ((tag & 7) === 4 || tag === 0) {
13613
+ break;
13614
+ }
13615
+ reader.skipType(tag & 7);
13616
+ }
13617
+ return message;
13618
+ },
13619
+ fromJSON(object) {
13620
+ return {
13621
+ role_ids: globalThis.Array.isArray(object?.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : [],
13622
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
13623
+ };
13624
+ },
13625
+ toJSON(message) {
13626
+ const obj = {};
13627
+ if (message.role_ids?.length) {
13311
13628
  obj.role_ids = message.role_ids;
13312
13629
  }
13313
13630
  if (message.channel_id !== "") {
@@ -13335,7 +13652,7 @@ function createBaseCreateChannelDescRequest() {
13335
13652
  channel_label: "",
13336
13653
  channel_private: 0,
13337
13654
  user_ids: [],
13338
- app_url: undefined,
13655
+ app_id: "",
13339
13656
  };
13340
13657
  }
13341
13658
  export const CreateChannelDescRequest = {
@@ -13364,8 +13681,8 @@ export const CreateChannelDescRequest = {
13364
13681
  for (const v of message.user_ids) {
13365
13682
  writer.uint32(66).string(v);
13366
13683
  }
13367
- if (message.app_url !== undefined) {
13368
- StringValue.encode({ value: message.app_url }, writer.uint32(74).fork()).ldelim();
13684
+ if (message.app_id !== "") {
13685
+ writer.uint32(74).string(message.app_id);
13369
13686
  }
13370
13687
  return writer;
13371
13688
  },
@@ -13428,7 +13745,7 @@ export const CreateChannelDescRequest = {
13428
13745
  if (tag !== 74) {
13429
13746
  break;
13430
13747
  }
13431
- message.app_url = StringValue.decode(reader, reader.uint32()).value;
13748
+ message.app_id = reader.string();
13432
13749
  continue;
13433
13750
  }
13434
13751
  if ((tag & 7) === 4 || tag === 0) {
@@ -13448,7 +13765,7 @@ export const CreateChannelDescRequest = {
13448
13765
  channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
13449
13766
  channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
13450
13767
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
13451
- app_url: isSet(object.app_url) ? String(object.app_url) : undefined,
13768
+ app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
13452
13769
  };
13453
13770
  },
13454
13771
  toJSON(message) {
@@ -13477,8 +13794,8 @@ export const CreateChannelDescRequest = {
13477
13794
  if (message.user_ids?.length) {
13478
13795
  obj.user_ids = message.user_ids;
13479
13796
  }
13480
- if (message.app_url !== undefined) {
13481
- obj.app_url = message.app_url;
13797
+ if (message.app_id !== "") {
13798
+ obj.app_id = message.app_id;
13482
13799
  }
13483
13800
  return obj;
13484
13801
  },
@@ -13495,7 +13812,7 @@ export const CreateChannelDescRequest = {
13495
13812
  message.channel_label = object.channel_label ?? "";
13496
13813
  message.channel_private = object.channel_private ?? 0;
13497
13814
  message.user_ids = object.user_ids?.map((e) => e) || [];
13498
- message.app_url = object.app_url ?? undefined;
13815
+ message.app_id = object.app_id ?? "";
13499
13816
  return message;
13500
13817
  },
13501
13818
  };
@@ -13554,7 +13871,7 @@ function createBaseUpdateChannelDescRequest() {
13554
13871
  channel_id: "",
13555
13872
  channel_label: undefined,
13556
13873
  category_id: undefined,
13557
- app_url: undefined,
13874
+ app_id: "",
13558
13875
  topic: "",
13559
13876
  age_restricted: 0,
13560
13877
  e2ee: 0,
@@ -13571,8 +13888,8 @@ export const UpdateChannelDescRequest = {
13571
13888
  if (message.category_id !== undefined) {
13572
13889
  StringValue.encode({ value: message.category_id }, writer.uint32(26).fork()).ldelim();
13573
13890
  }
13574
- if (message.app_url !== undefined) {
13575
- StringValue.encode({ value: message.app_url }, writer.uint32(34).fork()).ldelim();
13891
+ if (message.app_id !== "") {
13892
+ writer.uint32(34).string(message.app_id);
13576
13893
  }
13577
13894
  if (message.topic !== "") {
13578
13895
  writer.uint32(42).string(message.topic);
@@ -13614,7 +13931,7 @@ export const UpdateChannelDescRequest = {
13614
13931
  if (tag !== 34) {
13615
13932
  break;
13616
13933
  }
13617
- message.app_url = StringValue.decode(reader, reader.uint32()).value;
13934
+ message.app_id = reader.string();
13618
13935
  continue;
13619
13936
  case 5:
13620
13937
  if (tag !== 42) {
@@ -13647,7 +13964,7 @@ export const UpdateChannelDescRequest = {
13647
13964
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
13648
13965
  channel_label: isSet(object.channel_label) ? String(object.channel_label) : undefined,
13649
13966
  category_id: isSet(object.category_id) ? String(object.category_id) : undefined,
13650
- app_url: isSet(object.app_url) ? String(object.app_url) : undefined,
13967
+ app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
13651
13968
  topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
13652
13969
  age_restricted: isSet(object.age_restricted) ? globalThis.Number(object.age_restricted) : 0,
13653
13970
  e2ee: isSet(object.e2ee) ? globalThis.Number(object.e2ee) : 0,
@@ -13664,8 +13981,8 @@ export const UpdateChannelDescRequest = {
13664
13981
  if (message.category_id !== undefined) {
13665
13982
  obj.category_id = message.category_id;
13666
13983
  }
13667
- if (message.app_url !== undefined) {
13668
- obj.app_url = message.app_url;
13984
+ if (message.app_id !== "") {
13985
+ obj.app_id = message.app_id;
13669
13986
  }
13670
13987
  if (message.topic !== "") {
13671
13988
  obj.topic = message.topic;
@@ -13686,7 +14003,7 @@ export const UpdateChannelDescRequest = {
13686
14003
  message.channel_id = object.channel_id ?? "";
13687
14004
  message.channel_label = object.channel_label ?? undefined;
13688
14005
  message.category_id = object.category_id ?? undefined;
13689
- message.app_url = object.app_url ?? undefined;
14006
+ message.app_id = object.app_id ?? "";
13690
14007
  message.topic = object.topic ?? "";
13691
14008
  message.age_restricted = object.age_restricted ?? 0;
13692
14009
  message.e2ee = object.e2ee ?? 0;
@@ -14053,6 +14370,7 @@ function createBaseRole() {
14053
14370
  role_channel_active: 0,
14054
14371
  channel_ids: [],
14055
14372
  max_level_permission: 0,
14373
+ order_role: 0,
14056
14374
  };
14057
14375
  }
14058
14376
  export const Role = {
@@ -14105,6 +14423,9 @@ export const Role = {
14105
14423
  if (message.max_level_permission !== 0) {
14106
14424
  writer.uint32(128).int32(message.max_level_permission);
14107
14425
  }
14426
+ if (message.order_role !== 0) {
14427
+ writer.uint32(136).int32(message.order_role);
14428
+ }
14108
14429
  return writer;
14109
14430
  },
14110
14431
  decode(input, length) {
@@ -14210,6 +14531,12 @@ export const Role = {
14210
14531
  }
14211
14532
  message.max_level_permission = reader.int32();
14212
14533
  continue;
14534
+ case 17:
14535
+ if (tag !== 136) {
14536
+ break;
14537
+ }
14538
+ message.order_role = reader.int32();
14539
+ continue;
14213
14540
  }
14214
14541
  if ((tag & 7) === 4 || tag === 0) {
14215
14542
  break;
@@ -14238,6 +14565,7 @@ export const Role = {
14238
14565
  ? object.channel_ids.map((e) => globalThis.String(e))
14239
14566
  : [],
14240
14567
  max_level_permission: isSet(object.max_level_permission) ? globalThis.Number(object.max_level_permission) : 0,
14568
+ order_role: isSet(object.order_role) ? globalThis.Number(object.order_role) : 0,
14241
14569
  };
14242
14570
  },
14243
14571
  toJSON(message) {
@@ -14290,6 +14618,9 @@ export const Role = {
14290
14618
  if (message.max_level_permission !== 0) {
14291
14619
  obj.max_level_permission = Math.round(message.max_level_permission);
14292
14620
  }
14621
+ if (message.order_role !== 0) {
14622
+ obj.order_role = Math.round(message.order_role);
14623
+ }
14293
14624
  return obj;
14294
14625
  },
14295
14626
  create(base) {
@@ -14317,6 +14648,7 @@ export const Role = {
14317
14648
  message.role_channel_active = object.role_channel_active ?? 0;
14318
14649
  message.channel_ids = object.channel_ids?.map((e) => e) || [];
14319
14650
  message.max_level_permission = object.max_level_permission ?? 0;
14651
+ message.order_role = object.order_role ?? 0;
14320
14652
  return message;
14321
14653
  },
14322
14654
  };
@@ -14340,6 +14672,8 @@ function createBaseEventManagement() {
14340
14672
  channel_id: "",
14341
14673
  event_status: 0,
14342
14674
  repeat_type: 0,
14675
+ is_private: false,
14676
+ meet_room: undefined,
14343
14677
  };
14344
14678
  }
14345
14679
  export const EventManagement = {
@@ -14398,6 +14732,12 @@ export const EventManagement = {
14398
14732
  if (message.repeat_type !== 0) {
14399
14733
  writer.uint32(144).int32(message.repeat_type);
14400
14734
  }
14735
+ if (message.is_private !== false) {
14736
+ writer.uint32(152).bool(message.is_private);
14737
+ }
14738
+ if (message.meet_room !== undefined) {
14739
+ GenerateMezonMeetResponse.encode(message.meet_room, writer.uint32(162).fork()).ldelim();
14740
+ }
14401
14741
  return writer;
14402
14742
  },
14403
14743
  decode(input, length) {
@@ -14515,6 +14855,18 @@ export const EventManagement = {
14515
14855
  }
14516
14856
  message.repeat_type = reader.int32();
14517
14857
  continue;
14858
+ case 19:
14859
+ if (tag !== 152) {
14860
+ break;
14861
+ }
14862
+ message.is_private = reader.bool();
14863
+ continue;
14864
+ case 20:
14865
+ if (tag !== 162) {
14866
+ break;
14867
+ }
14868
+ message.meet_room = GenerateMezonMeetResponse.decode(reader, reader.uint32());
14869
+ continue;
14518
14870
  }
14519
14871
  if ((tag & 7) === 4 || tag === 0) {
14520
14872
  break;
@@ -14543,6 +14895,8 @@ export const EventManagement = {
14543
14895
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
14544
14896
  event_status: isSet(object.event_status) ? globalThis.Number(object.event_status) : 0,
14545
14897
  repeat_type: isSet(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
14898
+ is_private: isSet(object.is_private) ? globalThis.Boolean(object.is_private) : false,
14899
+ meet_room: isSet(object.meet_room) ? GenerateMezonMeetResponse.fromJSON(object.meet_room) : undefined,
14546
14900
  };
14547
14901
  },
14548
14902
  toJSON(message) {
@@ -14601,6 +14955,12 @@ export const EventManagement = {
14601
14955
  if (message.repeat_type !== 0) {
14602
14956
  obj.repeat_type = Math.round(message.repeat_type);
14603
14957
  }
14958
+ if (message.is_private !== false) {
14959
+ obj.is_private = message.is_private;
14960
+ }
14961
+ if (message.meet_room !== undefined) {
14962
+ obj.meet_room = GenerateMezonMeetResponse.toJSON(message.meet_room);
14963
+ }
14604
14964
  return obj;
14605
14965
  },
14606
14966
  create(base) {
@@ -14626,6 +14986,10 @@ export const EventManagement = {
14626
14986
  message.channel_id = object.channel_id ?? "";
14627
14987
  message.event_status = object.event_status ?? 0;
14628
14988
  message.repeat_type = object.repeat_type ?? 0;
14989
+ message.is_private = object.is_private ?? false;
14990
+ message.meet_room = (object.meet_room !== undefined && object.meet_room !== null)
14991
+ ? GenerateMezonMeetResponse.fromPartial(object.meet_room)
14992
+ : undefined;
14629
14993
  return message;
14630
14994
  },
14631
14995
  };
@@ -14894,6 +15258,7 @@ function createBasePinMessage() {
14894
15258
  avatar: "",
14895
15259
  create_time: undefined,
14896
15260
  create_time_seconds: 0,
15261
+ attachment: "",
14897
15262
  };
14898
15263
  }
14899
15264
  export const PinMessage = {
@@ -14925,6 +15290,9 @@ export const PinMessage = {
14925
15290
  if (message.create_time_seconds !== 0) {
14926
15291
  writer.uint32(72).uint32(message.create_time_seconds);
14927
15292
  }
15293
+ if (message.attachment !== "") {
15294
+ writer.uint32(82).string(message.attachment);
15295
+ }
14928
15296
  return writer;
14929
15297
  },
14930
15298
  decode(input, length) {
@@ -14988,6 +15356,12 @@ export const PinMessage = {
14988
15356
  }
14989
15357
  message.create_time_seconds = reader.uint32();
14990
15358
  continue;
15359
+ case 10:
15360
+ if (tag !== 82) {
15361
+ break;
15362
+ }
15363
+ message.attachment = reader.string();
15364
+ continue;
14991
15365
  }
14992
15366
  if ((tag & 7) === 4 || tag === 0) {
14993
15367
  break;
@@ -15007,6 +15381,7 @@ export const PinMessage = {
15007
15381
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
15008
15382
  create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
15009
15383
  create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
15384
+ attachment: isSet(object.attachment) ? globalThis.String(object.attachment) : "",
15010
15385
  };
15011
15386
  },
15012
15387
  toJSON(message) {
@@ -15038,6 +15413,9 @@ export const PinMessage = {
15038
15413
  if (message.create_time_seconds !== 0) {
15039
15414
  obj.create_time_seconds = Math.round(message.create_time_seconds);
15040
15415
  }
15416
+ if (message.attachment !== "") {
15417
+ obj.attachment = message.attachment;
15418
+ }
15041
15419
  return obj;
15042
15420
  },
15043
15421
  create(base) {
@@ -15054,6 +15432,7 @@ export const PinMessage = {
15054
15432
  message.avatar = object.avatar ?? "";
15055
15433
  message.create_time = object.create_time ?? undefined;
15056
15434
  message.create_time_seconds = object.create_time_seconds ?? 0;
15435
+ message.attachment = object.attachment ?? "";
15057
15436
  return message;
15058
15437
  },
15059
15438
  };
@@ -17081,6 +17460,7 @@ function createBaseCreateRoleRequest() {
17081
17460
  max_permission_id: "",
17082
17461
  add_user_ids: [],
17083
17462
  active_permission_ids: [],
17463
+ order_role: 0,
17084
17464
  };
17085
17465
  }
17086
17466
  export const CreateRoleRequest = {
@@ -17115,6 +17495,9 @@ export const CreateRoleRequest = {
17115
17495
  for (const v of message.active_permission_ids) {
17116
17496
  writer.uint32(82).string(v);
17117
17497
  }
17498
+ if (message.order_role !== 0) {
17499
+ writer.uint32(88).int32(message.order_role);
17500
+ }
17118
17501
  return writer;
17119
17502
  },
17120
17503
  decode(input, length) {
@@ -17184,6 +17567,12 @@ export const CreateRoleRequest = {
17184
17567
  }
17185
17568
  message.active_permission_ids.push(reader.string());
17186
17569
  continue;
17570
+ case 11:
17571
+ if (tag !== 88) {
17572
+ break;
17573
+ }
17574
+ message.order_role = reader.int32();
17575
+ continue;
17187
17576
  }
17188
17577
  if ((tag & 7) === 4 || tag === 0) {
17189
17578
  break;
@@ -17208,6 +17597,7 @@ export const CreateRoleRequest = {
17208
17597
  active_permission_ids: globalThis.Array.isArray(object?.active_permission_ids)
17209
17598
  ? object.active_permission_ids.map((e) => globalThis.String(e))
17210
17599
  : [],
17600
+ order_role: isSet(object.order_role) ? globalThis.Number(object.order_role) : 0,
17211
17601
  };
17212
17602
  },
17213
17603
  toJSON(message) {
@@ -17242,6 +17632,9 @@ export const CreateRoleRequest = {
17242
17632
  if (message.active_permission_ids?.length) {
17243
17633
  obj.active_permission_ids = message.active_permission_ids;
17244
17634
  }
17635
+ if (message.order_role !== 0) {
17636
+ obj.order_role = Math.round(message.order_role);
17637
+ }
17245
17638
  return obj;
17246
17639
  },
17247
17640
  create(base) {
@@ -17259,6 +17652,7 @@ export const CreateRoleRequest = {
17259
17652
  message.max_permission_id = object.max_permission_id ?? "";
17260
17653
  message.add_user_ids = object.add_user_ids?.map((e) => e) || [];
17261
17654
  message.active_permission_ids = object.active_permission_ids?.map((e) => e) || [];
17655
+ message.order_role = object.order_role ?? 0;
17262
17656
  return message;
17263
17657
  },
17264
17658
  };
@@ -17279,6 +17673,8 @@ function createBaseCreateEventRequest() {
17279
17673
  repeat_type: 0,
17280
17674
  creator_id: "",
17281
17675
  user_id: "",
17676
+ is_private: undefined,
17677
+ meet_room: undefined,
17282
17678
  };
17283
17679
  }
17284
17680
  export const CreateEventRequest = {
@@ -17328,6 +17724,12 @@ export const CreateEventRequest = {
17328
17724
  if (message.user_id !== "") {
17329
17725
  writer.uint32(122).string(message.user_id);
17330
17726
  }
17727
+ if (message.is_private !== undefined) {
17728
+ BoolValue.encode({ value: message.is_private }, writer.uint32(130).fork()).ldelim();
17729
+ }
17730
+ if (message.meet_room !== undefined) {
17731
+ GenerateMezonMeetResponse.encode(message.meet_room, writer.uint32(138).fork()).ldelim();
17732
+ }
17331
17733
  return writer;
17332
17734
  },
17333
17735
  decode(input, length) {
@@ -17427,6 +17829,18 @@ export const CreateEventRequest = {
17427
17829
  }
17428
17830
  message.user_id = reader.string();
17429
17831
  continue;
17832
+ case 16:
17833
+ if (tag !== 130) {
17834
+ break;
17835
+ }
17836
+ message.is_private = BoolValue.decode(reader, reader.uint32()).value;
17837
+ continue;
17838
+ case 17:
17839
+ if (tag !== 138) {
17840
+ break;
17841
+ }
17842
+ message.meet_room = GenerateMezonMeetResponse.decode(reader, reader.uint32());
17843
+ continue;
17430
17844
  }
17431
17845
  if ((tag & 7) === 4 || tag === 0) {
17432
17846
  break;
@@ -17452,6 +17866,8 @@ export const CreateEventRequest = {
17452
17866
  repeat_type: isSet(object.repeat_type) ? globalThis.Number(object.repeat_type) : 0,
17453
17867
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
17454
17868
  user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
17869
+ is_private: isSet(object.is_private) ? Boolean(object.is_private) : undefined,
17870
+ meet_room: isSet(object.meet_room) ? GenerateMezonMeetResponse.fromJSON(object.meet_room) : undefined,
17455
17871
  };
17456
17872
  },
17457
17873
  toJSON(message) {
@@ -17501,6 +17917,12 @@ export const CreateEventRequest = {
17501
17917
  if (message.user_id !== "") {
17502
17918
  obj.user_id = message.user_id;
17503
17919
  }
17920
+ if (message.is_private !== undefined) {
17921
+ obj.is_private = message.is_private;
17922
+ }
17923
+ if (message.meet_room !== undefined) {
17924
+ obj.meet_room = GenerateMezonMeetResponse.toJSON(message.meet_room);
17925
+ }
17504
17926
  return obj;
17505
17927
  },
17506
17928
  create(base) {
@@ -17523,6 +17945,10 @@ export const CreateEventRequest = {
17523
17945
  message.repeat_type = object.repeat_type ?? 0;
17524
17946
  message.creator_id = object.creator_id ?? "";
17525
17947
  message.user_id = object.user_id ?? "";
17948
+ message.is_private = object.is_private ?? undefined;
17949
+ message.meet_room = (object.meet_room !== undefined && object.meet_room !== null)
17950
+ ? GenerateMezonMeetResponse.fromPartial(object.meet_room)
17951
+ : undefined;
17526
17952
  return message;
17527
17953
  },
17528
17954
  };
@@ -21733,6 +22159,7 @@ function createBaseApp() {
21733
22159
  token: "",
21734
22160
  role: 0,
21735
22161
  about: "",
22162
+ app_url: "",
21736
22163
  };
21737
22164
  }
21738
22165
  export const App = {
@@ -21764,6 +22191,9 @@ export const App = {
21764
22191
  if (message.about !== "") {
21765
22192
  writer.uint32(74).string(message.about);
21766
22193
  }
22194
+ if (message.app_url !== "") {
22195
+ writer.uint32(82).string(message.app_url);
22196
+ }
21767
22197
  return writer;
21768
22198
  },
21769
22199
  decode(input, length) {
@@ -21827,6 +22257,12 @@ export const App = {
21827
22257
  }
21828
22258
  message.about = reader.string();
21829
22259
  continue;
22260
+ case 10:
22261
+ if (tag !== 82) {
22262
+ break;
22263
+ }
22264
+ message.app_url = reader.string();
22265
+ continue;
21830
22266
  }
21831
22267
  if ((tag & 7) === 4 || tag === 0) {
21832
22268
  break;
@@ -21846,6 +22282,7 @@ export const App = {
21846
22282
  token: isSet(object.token) ? globalThis.String(object.token) : "",
21847
22283
  role: isSet(object.role) ? globalThis.Number(object.role) : 0,
21848
22284
  about: isSet(object.about) ? globalThis.String(object.about) : "",
22285
+ app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
21849
22286
  };
21850
22287
  },
21851
22288
  toJSON(message) {
@@ -21877,6 +22314,9 @@ export const App = {
21877
22314
  if (message.about !== "") {
21878
22315
  obj.about = message.about;
21879
22316
  }
22317
+ if (message.app_url !== "") {
22318
+ obj.app_url = message.app_url;
22319
+ }
21880
22320
  return obj;
21881
22321
  },
21882
22322
  create(base) {
@@ -21893,6 +22333,7 @@ export const App = {
21893
22333
  message.token = object.token ?? "";
21894
22334
  message.role = object.role ?? 0;
21895
22335
  message.about = object.about ?? "";
22336
+ message.app_url = object.app_url ?? "";
21896
22337
  return message;
21897
22338
  },
21898
22339
  };
@@ -22043,7 +22484,7 @@ export const AppList = {
22043
22484
  },
22044
22485
  };
22045
22486
  function createBaseAddAppRequest() {
22046
- return { appname: "", token: "", creator_id: "", role: 0, is_shadow: false };
22487
+ return { appname: "", token: "", creator_id: "", role: 0, is_shadow: false, app_url: "", app_logo: "", about_me: "" };
22047
22488
  }
22048
22489
  export const AddAppRequest = {
22049
22490
  encode(message, writer = _m0.Writer.create()) {
@@ -22062,6 +22503,15 @@ export const AddAppRequest = {
22062
22503
  if (message.is_shadow !== false) {
22063
22504
  writer.uint32(40).bool(message.is_shadow);
22064
22505
  }
22506
+ if (message.app_url !== "") {
22507
+ writer.uint32(50).string(message.app_url);
22508
+ }
22509
+ if (message.app_logo !== "") {
22510
+ writer.uint32(58).string(message.app_logo);
22511
+ }
22512
+ if (message.about_me !== "") {
22513
+ writer.uint32(66).string(message.about_me);
22514
+ }
22065
22515
  return writer;
22066
22516
  },
22067
22517
  decode(input, length) {
@@ -22101,6 +22551,24 @@ export const AddAppRequest = {
22101
22551
  }
22102
22552
  message.is_shadow = reader.bool();
22103
22553
  continue;
22554
+ case 6:
22555
+ if (tag !== 50) {
22556
+ break;
22557
+ }
22558
+ message.app_url = reader.string();
22559
+ continue;
22560
+ case 7:
22561
+ if (tag !== 58) {
22562
+ break;
22563
+ }
22564
+ message.app_logo = reader.string();
22565
+ continue;
22566
+ case 8:
22567
+ if (tag !== 66) {
22568
+ break;
22569
+ }
22570
+ message.about_me = reader.string();
22571
+ continue;
22104
22572
  }
22105
22573
  if ((tag & 7) === 4 || tag === 0) {
22106
22574
  break;
@@ -22116,6 +22584,9 @@ export const AddAppRequest = {
22116
22584
  creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
22117
22585
  role: isSet(object.role) ? globalThis.Number(object.role) : 0,
22118
22586
  is_shadow: isSet(object.is_shadow) ? globalThis.Boolean(object.is_shadow) : false,
22587
+ app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
22588
+ app_logo: isSet(object.app_logo) ? globalThis.String(object.app_logo) : "",
22589
+ about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
22119
22590
  };
22120
22591
  },
22121
22592
  toJSON(message) {
@@ -22135,6 +22606,15 @@ export const AddAppRequest = {
22135
22606
  if (message.is_shadow !== false) {
22136
22607
  obj.is_shadow = message.is_shadow;
22137
22608
  }
22609
+ if (message.app_url !== "") {
22610
+ obj.app_url = message.app_url;
22611
+ }
22612
+ if (message.app_logo !== "") {
22613
+ obj.app_logo = message.app_logo;
22614
+ }
22615
+ if (message.about_me !== "") {
22616
+ obj.about_me = message.about_me;
22617
+ }
22138
22618
  return obj;
22139
22619
  },
22140
22620
  create(base) {
@@ -22147,6 +22627,9 @@ export const AddAppRequest = {
22147
22627
  message.creator_id = object.creator_id ?? "";
22148
22628
  message.role = object.role ?? 0;
22149
22629
  message.is_shadow = object.is_shadow ?? false;
22630
+ message.app_url = object.app_url ?? "";
22631
+ message.app_logo = object.app_logo ?? "";
22632
+ message.about_me = object.about_me ?? "";
22150
22633
  return message;
22151
22634
  },
22152
22635
  };
@@ -22231,7 +22714,15 @@ export const ListAppsRequest = {
22231
22714
  },
22232
22715
  };
22233
22716
  function createBaseUpdateAppRequest() {
22234
- return { id: "", appname: undefined, metadata: undefined, applogo: undefined, token: undefined, about: "" };
22717
+ return {
22718
+ id: "",
22719
+ appname: undefined,
22720
+ metadata: undefined,
22721
+ applogo: undefined,
22722
+ token: undefined,
22723
+ about: "",
22724
+ app_url: "",
22725
+ };
22235
22726
  }
22236
22727
  export const UpdateAppRequest = {
22237
22728
  encode(message, writer = _m0.Writer.create()) {
@@ -22253,6 +22744,9 @@ export const UpdateAppRequest = {
22253
22744
  if (message.about !== "") {
22254
22745
  writer.uint32(50).string(message.about);
22255
22746
  }
22747
+ if (message.app_url !== "") {
22748
+ writer.uint32(58).string(message.app_url);
22749
+ }
22256
22750
  return writer;
22257
22751
  },
22258
22752
  decode(input, length) {
@@ -22298,6 +22792,12 @@ export const UpdateAppRequest = {
22298
22792
  }
22299
22793
  message.about = reader.string();
22300
22794
  continue;
22795
+ case 7:
22796
+ if (tag !== 58) {
22797
+ break;
22798
+ }
22799
+ message.app_url = reader.string();
22800
+ continue;
22301
22801
  }
22302
22802
  if ((tag & 7) === 4 || tag === 0) {
22303
22803
  break;
@@ -22314,6 +22814,7 @@ export const UpdateAppRequest = {
22314
22814
  applogo: isSet(object.applogo) ? String(object.applogo) : undefined,
22315
22815
  token: isSet(object.token) ? String(object.token) : undefined,
22316
22816
  about: isSet(object.about) ? globalThis.String(object.about) : "",
22817
+ app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
22317
22818
  };
22318
22819
  },
22319
22820
  toJSON(message) {
@@ -22336,6 +22837,9 @@ export const UpdateAppRequest = {
22336
22837
  if (message.about !== "") {
22337
22838
  obj.about = message.about;
22338
22839
  }
22840
+ if (message.app_url !== "") {
22841
+ obj.app_url = message.app_url;
22842
+ }
22339
22843
  return obj;
22340
22844
  },
22341
22845
  create(base) {
@@ -22349,6 +22853,7 @@ export const UpdateAppRequest = {
22349
22853
  message.applogo = object.applogo ?? undefined;
22350
22854
  message.token = object.token ?? undefined;
22351
22855
  message.about = object.about ?? "";
22856
+ message.app_url = object.app_url ?? "";
22352
22857
  return message;
22353
22858
  },
22354
22859
  };
@@ -24060,7 +24565,7 @@ export const ListChannelAppsResponse = {
24060
24565
  },
24061
24566
  };
24062
24567
  function createBaseChannelAppResponse() {
24063
- return { id: "", clan_id: "", channel_id: "", app_id: "", url: "" };
24568
+ return { id: "", clan_id: "", channel_id: "", app_id: "", app_url: "" };
24064
24569
  }
24065
24570
  export const ChannelAppResponse = {
24066
24571
  encode(message, writer = _m0.Writer.create()) {
@@ -24076,8 +24581,8 @@ export const ChannelAppResponse = {
24076
24581
  if (message.app_id !== "") {
24077
24582
  writer.uint32(34).string(message.app_id);
24078
24583
  }
24079
- if (message.url !== "") {
24080
- writer.uint32(42).string(message.url);
24584
+ if (message.app_url !== "") {
24585
+ writer.uint32(42).string(message.app_url);
24081
24586
  }
24082
24587
  return writer;
24083
24588
  },
@@ -24116,7 +24621,7 @@ export const ChannelAppResponse = {
24116
24621
  if (tag !== 42) {
24117
24622
  break;
24118
24623
  }
24119
- message.url = reader.string();
24624
+ message.app_url = reader.string();
24120
24625
  continue;
24121
24626
  }
24122
24627
  if ((tag & 7) === 4 || tag === 0) {
@@ -24132,7 +24637,7 @@ export const ChannelAppResponse = {
24132
24637
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
24133
24638
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
24134
24639
  app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
24135
- url: isSet(object.url) ? globalThis.String(object.url) : "",
24640
+ app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
24136
24641
  };
24137
24642
  },
24138
24643
  toJSON(message) {
@@ -24149,8 +24654,8 @@ export const ChannelAppResponse = {
24149
24654
  if (message.app_id !== "") {
24150
24655
  obj.app_id = message.app_id;
24151
24656
  }
24152
- if (message.url !== "") {
24153
- obj.url = message.url;
24657
+ if (message.app_url !== "") {
24658
+ obj.app_url = message.app_url;
24154
24659
  }
24155
24660
  return obj;
24156
24661
  },
@@ -24163,7 +24668,7 @@ export const ChannelAppResponse = {
24163
24668
  message.clan_id = object.clan_id ?? "";
24164
24669
  message.channel_id = object.channel_id ?? "";
24165
24670
  message.app_id = object.app_id ?? "";
24166
- message.url = object.url ?? "";
24671
+ message.app_url = object.app_url ?? "";
24167
24672
  return message;
24168
24673
  },
24169
24674
  };
@@ -31229,20 +31734,29 @@ export const GenerateMeetTokenRequest = {
31229
31734
  return message;
31230
31735
  },
31231
31736
  };
31232
- function createBaseGenerateMeetTokenResponse() {
31233
- return { token: "" };
31737
+ function createBaseGenerateMeetTokenExternalRequest() {
31738
+ return { body: undefined, token: "", display_name: "", is_guest: false };
31234
31739
  }
31235
- export const GenerateMeetTokenResponse = {
31740
+ export const GenerateMeetTokenExternalRequest = {
31236
31741
  encode(message, writer = _m0.Writer.create()) {
31742
+ if (message.body !== undefined) {
31743
+ Struct.encode(Struct.wrap(message.body), writer.uint32(10).fork()).ldelim();
31744
+ }
31237
31745
  if (message.token !== "") {
31238
- writer.uint32(10).string(message.token);
31746
+ writer.uint32(18).string(message.token);
31747
+ }
31748
+ if (message.display_name !== "") {
31749
+ writer.uint32(26).string(message.display_name);
31750
+ }
31751
+ if (message.is_guest !== false) {
31752
+ writer.uint32(32).bool(message.is_guest);
31239
31753
  }
31240
31754
  return writer;
31241
31755
  },
31242
31756
  decode(input, length) {
31243
31757
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
31244
31758
  let end = length === undefined ? reader.len : reader.pos + length;
31245
- const message = createBaseGenerateMeetTokenResponse();
31759
+ const message = createBaseGenerateMeetTokenExternalRequest();
31246
31760
  while (reader.pos < end) {
31247
31761
  const tag = reader.uint32();
31248
31762
  switch (tag >>> 3) {
@@ -31250,8 +31764,26 @@ export const GenerateMeetTokenResponse = {
31250
31764
  if (tag !== 10) {
31251
31765
  break;
31252
31766
  }
31767
+ message.body = Struct.unwrap(Struct.decode(reader, reader.uint32()));
31768
+ continue;
31769
+ case 2:
31770
+ if (tag !== 18) {
31771
+ break;
31772
+ }
31253
31773
  message.token = reader.string();
31254
31774
  continue;
31775
+ case 3:
31776
+ if (tag !== 26) {
31777
+ break;
31778
+ }
31779
+ message.display_name = reader.string();
31780
+ continue;
31781
+ case 4:
31782
+ if (tag !== 32) {
31783
+ break;
31784
+ }
31785
+ message.is_guest = reader.bool();
31786
+ continue;
31255
31787
  }
31256
31788
  if ((tag & 7) === 4 || tag === 0) {
31257
31789
  break;
@@ -31261,41 +31793,111 @@ export const GenerateMeetTokenResponse = {
31261
31793
  return message;
31262
31794
  },
31263
31795
  fromJSON(object) {
31264
- return { token: isSet(object.token) ? globalThis.String(object.token) : "" };
31796
+ return {
31797
+ body: isObject(object.body) ? object.body : undefined,
31798
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
31799
+ display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
31800
+ is_guest: isSet(object.is_guest) ? globalThis.Boolean(object.is_guest) : false,
31801
+ };
31265
31802
  },
31266
31803
  toJSON(message) {
31267
31804
  const obj = {};
31805
+ if (message.body !== undefined) {
31806
+ obj.body = message.body;
31807
+ }
31268
31808
  if (message.token !== "") {
31269
31809
  obj.token = message.token;
31270
31810
  }
31811
+ if (message.display_name !== "") {
31812
+ obj.display_name = message.display_name;
31813
+ }
31814
+ if (message.is_guest !== false) {
31815
+ obj.is_guest = message.is_guest;
31816
+ }
31271
31817
  return obj;
31272
31818
  },
31273
31819
  create(base) {
31274
- return GenerateMeetTokenResponse.fromPartial(base ?? {});
31820
+ return GenerateMeetTokenExternalRequest.fromPartial(base ?? {});
31275
31821
  },
31276
31822
  fromPartial(object) {
31277
- const message = createBaseGenerateMeetTokenResponse();
31823
+ const message = createBaseGenerateMeetTokenExternalRequest();
31824
+ message.body = object.body ?? undefined;
31278
31825
  message.token = object.token ?? "";
31826
+ message.display_name = object.display_name ?? "";
31827
+ message.is_guest = object.is_guest ?? false;
31279
31828
  return message;
31280
31829
  },
31281
31830
  };
31282
- function createBaseCreateRoomChannelApps() {
31283
- return { channel_id: "", room_name: "" };
31831
+ function createBaseGenerateMeetTokenResponse() {
31832
+ return { token: "" };
31284
31833
  }
31285
- export const CreateRoomChannelApps = {
31834
+ export const GenerateMeetTokenResponse = {
31286
31835
  encode(message, writer = _m0.Writer.create()) {
31287
- if (message.channel_id !== "") {
31288
- writer.uint32(10).string(message.channel_id);
31836
+ if (message.token !== "") {
31837
+ writer.uint32(10).string(message.token);
31289
31838
  }
31290
- if (message.room_name !== "") {
31291
- writer.uint32(18).string(message.room_name);
31839
+ return writer;
31840
+ },
31841
+ decode(input, length) {
31842
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
31843
+ let end = length === undefined ? reader.len : reader.pos + length;
31844
+ const message = createBaseGenerateMeetTokenResponse();
31845
+ while (reader.pos < end) {
31846
+ const tag = reader.uint32();
31847
+ switch (tag >>> 3) {
31848
+ case 1:
31849
+ if (tag !== 10) {
31850
+ break;
31851
+ }
31852
+ message.token = reader.string();
31853
+ continue;
31854
+ }
31855
+ if ((tag & 7) === 4 || tag === 0) {
31856
+ break;
31857
+ }
31858
+ reader.skipType(tag & 7);
31859
+ }
31860
+ return message;
31861
+ },
31862
+ fromJSON(object) {
31863
+ return { token: isSet(object.token) ? globalThis.String(object.token) : "" };
31864
+ },
31865
+ toJSON(message) {
31866
+ const obj = {};
31867
+ if (message.token !== "") {
31868
+ obj.token = message.token;
31869
+ }
31870
+ return obj;
31871
+ },
31872
+ create(base) {
31873
+ return GenerateMeetTokenResponse.fromPartial(base ?? {});
31874
+ },
31875
+ fromPartial(object) {
31876
+ const message = createBaseGenerateMeetTokenResponse();
31877
+ message.token = object.token ?? "";
31878
+ return message;
31879
+ },
31880
+ };
31881
+ function createBaseGenerateMeetTokenExternalResponse() {
31882
+ return { token: "", guest_user_id: "", guest_access_token: "" };
31883
+ }
31884
+ export const GenerateMeetTokenExternalResponse = {
31885
+ encode(message, writer = _m0.Writer.create()) {
31886
+ if (message.token !== "") {
31887
+ writer.uint32(10).string(message.token);
31888
+ }
31889
+ if (message.guest_user_id !== "") {
31890
+ writer.uint32(18).string(message.guest_user_id);
31891
+ }
31892
+ if (message.guest_access_token !== "") {
31893
+ writer.uint32(26).string(message.guest_access_token);
31292
31894
  }
31293
31895
  return writer;
31294
31896
  },
31295
31897
  decode(input, length) {
31296
31898
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
31297
31899
  let end = length === undefined ? reader.len : reader.pos + length;
31298
- const message = createBaseCreateRoomChannelApps();
31900
+ const message = createBaseGenerateMeetTokenExternalResponse();
31299
31901
  while (reader.pos < end) {
31300
31902
  const tag = reader.uint32();
31301
31903
  switch (tag >>> 3) {
@@ -31303,13 +31905,19 @@ export const CreateRoomChannelApps = {
31303
31905
  if (tag !== 10) {
31304
31906
  break;
31305
31907
  }
31306
- message.channel_id = reader.string();
31908
+ message.token = reader.string();
31307
31909
  continue;
31308
31910
  case 2:
31309
31911
  if (tag !== 18) {
31310
31912
  break;
31311
31913
  }
31312
- message.room_name = reader.string();
31914
+ message.guest_user_id = reader.string();
31915
+ continue;
31916
+ case 3:
31917
+ if (tag !== 26) {
31918
+ break;
31919
+ }
31920
+ message.guest_access_token = reader.string();
31313
31921
  continue;
31314
31922
  }
31315
31923
  if ((tag & 7) === 4 || tag === 0) {
@@ -31321,56 +31929,61 @@ export const CreateRoomChannelApps = {
31321
31929
  },
31322
31930
  fromJSON(object) {
31323
31931
  return {
31324
- channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
31325
- room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
31932
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
31933
+ guest_user_id: isSet(object.guest_user_id) ? globalThis.String(object.guest_user_id) : "",
31934
+ guest_access_token: isSet(object.guest_access_token) ? globalThis.String(object.guest_access_token) : "",
31326
31935
  };
31327
31936
  },
31328
31937
  toJSON(message) {
31329
31938
  const obj = {};
31330
- if (message.channel_id !== "") {
31331
- obj.channel_id = message.channel_id;
31939
+ if (message.token !== "") {
31940
+ obj.token = message.token;
31332
31941
  }
31333
- if (message.room_name !== "") {
31334
- obj.room_name = message.room_name;
31942
+ if (message.guest_user_id !== "") {
31943
+ obj.guest_user_id = message.guest_user_id;
31944
+ }
31945
+ if (message.guest_access_token !== "") {
31946
+ obj.guest_access_token = message.guest_access_token;
31335
31947
  }
31336
31948
  return obj;
31337
31949
  },
31338
31950
  create(base) {
31339
- return CreateRoomChannelApps.fromPartial(base ?? {});
31951
+ return GenerateMeetTokenExternalResponse.fromPartial(base ?? {});
31340
31952
  },
31341
31953
  fromPartial(object) {
31342
- const message = createBaseCreateRoomChannelApps();
31343
- message.channel_id = object.channel_id ?? "";
31344
- message.room_name = object.room_name ?? "";
31954
+ const message = createBaseGenerateMeetTokenExternalResponse();
31955
+ message.token = object.token ?? "";
31956
+ message.guest_user_id = object.guest_user_id ?? "";
31957
+ message.guest_access_token = object.guest_access_token ?? "";
31345
31958
  return message;
31346
31959
  },
31347
31960
  };
31348
- function createBaseHandleParticipantMeetStateRequest() {
31349
- return { clan_id: "", channel_id: "", user_id: "", display_name: "", state: 0 };
31961
+ function createBaseGenerateMezonMeetResponse() {
31962
+ return { meet_id: "", room_name: "", external_link: "", creator_id: "", event_id: "" };
31350
31963
  }
31351
- export const HandleParticipantMeetStateRequest = {
31964
+ export const GenerateMezonMeetResponse = {
31352
31965
  encode(message, writer = _m0.Writer.create()) {
31353
- if (message.clan_id !== "") {
31354
- writer.uint32(10).string(message.clan_id);
31966
+ if (message.meet_id !== "") {
31967
+ writer.uint32(10).string(message.meet_id);
31355
31968
  }
31356
- if (message.channel_id !== "") {
31357
- writer.uint32(18).string(message.channel_id);
31969
+ if (message.room_name !== "") {
31970
+ writer.uint32(18).string(message.room_name);
31358
31971
  }
31359
- if (message.user_id !== "") {
31360
- writer.uint32(26).string(message.user_id);
31972
+ if (message.external_link !== "") {
31973
+ writer.uint32(26).string(message.external_link);
31361
31974
  }
31362
- if (message.display_name !== "") {
31363
- writer.uint32(34).string(message.display_name);
31975
+ if (message.creator_id !== "") {
31976
+ writer.uint32(34).string(message.creator_id);
31364
31977
  }
31365
- if (message.state !== 0) {
31366
- writer.uint32(40).int32(message.state);
31978
+ if (message.event_id !== "") {
31979
+ writer.uint32(42).string(message.event_id);
31367
31980
  }
31368
31981
  return writer;
31369
31982
  },
31370
31983
  decode(input, length) {
31371
31984
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
31372
31985
  let end = length === undefined ? reader.len : reader.pos + length;
31373
- const message = createBaseHandleParticipantMeetStateRequest();
31986
+ const message = createBaseGenerateMezonMeetResponse();
31374
31987
  while (reader.pos < end) {
31375
31988
  const tag = reader.uint32();
31376
31989
  switch (tag >>> 3) {
@@ -31378,31 +31991,31 @@ export const HandleParticipantMeetStateRequest = {
31378
31991
  if (tag !== 10) {
31379
31992
  break;
31380
31993
  }
31381
- message.clan_id = reader.string();
31994
+ message.meet_id = reader.string();
31382
31995
  continue;
31383
31996
  case 2:
31384
31997
  if (tag !== 18) {
31385
31998
  break;
31386
31999
  }
31387
- message.channel_id = reader.string();
32000
+ message.room_name = reader.string();
31388
32001
  continue;
31389
32002
  case 3:
31390
32003
  if (tag !== 26) {
31391
32004
  break;
31392
32005
  }
31393
- message.user_id = reader.string();
32006
+ message.external_link = reader.string();
31394
32007
  continue;
31395
32008
  case 4:
31396
32009
  if (tag !== 34) {
31397
32010
  break;
31398
32011
  }
31399
- message.display_name = reader.string();
32012
+ message.creator_id = reader.string();
31400
32013
  continue;
31401
32014
  case 5:
31402
- if (tag !== 40) {
32015
+ if (tag !== 42) {
31403
32016
  break;
31404
32017
  }
31405
- message.state = reader.int32();
32018
+ message.event_id = reader.string();
31406
32019
  continue;
31407
32020
  }
31408
32021
  if ((tag & 7) === 4 || tag === 0) {
@@ -31414,42 +32027,108 @@ export const HandleParticipantMeetStateRequest = {
31414
32027
  },
31415
32028
  fromJSON(object) {
31416
32029
  return {
31417
- clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
31418
- channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
31419
- user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
31420
- display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
31421
- state: isSet(object.state) ? globalThis.Number(object.state) : 0,
32030
+ meet_id: isSet(object.meet_id) ? globalThis.String(object.meet_id) : "",
32031
+ room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
32032
+ external_link: isSet(object.external_link) ? globalThis.String(object.external_link) : "",
32033
+ creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "",
32034
+ event_id: isSet(object.event_id) ? globalThis.String(object.event_id) : "",
31422
32035
  };
31423
32036
  },
31424
32037
  toJSON(message) {
31425
32038
  const obj = {};
31426
- if (message.clan_id !== "") {
31427
- obj.clan_id = message.clan_id;
32039
+ if (message.meet_id !== "") {
32040
+ obj.meet_id = message.meet_id;
32041
+ }
32042
+ if (message.room_name !== "") {
32043
+ obj.room_name = message.room_name;
31428
32044
  }
32045
+ if (message.external_link !== "") {
32046
+ obj.external_link = message.external_link;
32047
+ }
32048
+ if (message.creator_id !== "") {
32049
+ obj.creator_id = message.creator_id;
32050
+ }
32051
+ if (message.event_id !== "") {
32052
+ obj.event_id = message.event_id;
32053
+ }
32054
+ return obj;
32055
+ },
32056
+ create(base) {
32057
+ return GenerateMezonMeetResponse.fromPartial(base ?? {});
32058
+ },
32059
+ fromPartial(object) {
32060
+ const message = createBaseGenerateMezonMeetResponse();
32061
+ message.meet_id = object.meet_id ?? "";
32062
+ message.room_name = object.room_name ?? "";
32063
+ message.external_link = object.external_link ?? "";
32064
+ message.creator_id = object.creator_id ?? "";
32065
+ message.event_id = object.event_id ?? "";
32066
+ return message;
32067
+ },
32068
+ };
32069
+ function createBaseCreateRoomChannelApps() {
32070
+ return { channel_id: "", room_name: "" };
32071
+ }
32072
+ export const CreateRoomChannelApps = {
32073
+ encode(message, writer = _m0.Writer.create()) {
31429
32074
  if (message.channel_id !== "") {
31430
- obj.channel_id = message.channel_id;
32075
+ writer.uint32(10).string(message.channel_id);
31431
32076
  }
31432
- if (message.user_id !== "") {
31433
- obj.user_id = message.user_id;
32077
+ if (message.room_name !== "") {
32078
+ writer.uint32(18).string(message.room_name);
31434
32079
  }
31435
- if (message.display_name !== "") {
31436
- obj.display_name = message.display_name;
32080
+ return writer;
32081
+ },
32082
+ decode(input, length) {
32083
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
32084
+ let end = length === undefined ? reader.len : reader.pos + length;
32085
+ const message = createBaseCreateRoomChannelApps();
32086
+ while (reader.pos < end) {
32087
+ const tag = reader.uint32();
32088
+ switch (tag >>> 3) {
32089
+ case 1:
32090
+ if (tag !== 10) {
32091
+ break;
32092
+ }
32093
+ message.channel_id = reader.string();
32094
+ continue;
32095
+ case 2:
32096
+ if (tag !== 18) {
32097
+ break;
32098
+ }
32099
+ message.room_name = reader.string();
32100
+ continue;
32101
+ }
32102
+ if ((tag & 7) === 4 || tag === 0) {
32103
+ break;
32104
+ }
32105
+ reader.skipType(tag & 7);
32106
+ }
32107
+ return message;
32108
+ },
32109
+ fromJSON(object) {
32110
+ return {
32111
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
32112
+ room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
32113
+ };
32114
+ },
32115
+ toJSON(message) {
32116
+ const obj = {};
32117
+ if (message.channel_id !== "") {
32118
+ obj.channel_id = message.channel_id;
31437
32119
  }
31438
- if (message.state !== 0) {
31439
- obj.state = Math.round(message.state);
32120
+ if (message.room_name !== "") {
32121
+ obj.room_name = message.room_name;
31440
32122
  }
31441
32123
  return obj;
31442
32124
  },
31443
32125
  create(base) {
31444
- return HandleParticipantMeetStateRequest.fromPartial(base ?? {});
32126
+ return CreateRoomChannelApps.fromPartial(base ?? {});
31445
32127
  },
31446
32128
  fromPartial(object) {
31447
- const message = createBaseHandleParticipantMeetStateRequest();
31448
- message.clan_id = object.clan_id ?? "";
32129
+ const message = createBaseCreateRoomChannelApps();
31449
32130
  message.channel_id = object.channel_id ?? "";
31450
- message.user_id = object.user_id ?? "";
31451
- message.display_name = object.display_name ?? "";
31452
- message.state = object.state ?? 0;
32131
+ message.room_name = object.room_name ?? "";
31453
32132
  return message;
31454
32133
  },
31455
32134
  };
@@ -32558,6 +33237,246 @@ export const GenerateHashChannelAppsResponse = {
32558
33237
  return message;
32559
33238
  },
32560
33239
  };
33240
+ function createBaseGetMezonAccountRequest() {
33241
+ return { secret: "", email: "" };
33242
+ }
33243
+ export const GetMezonAccountRequest = {
33244
+ encode(message, writer = _m0.Writer.create()) {
33245
+ if (message.secret !== "") {
33246
+ writer.uint32(10).string(message.secret);
33247
+ }
33248
+ if (message.email !== "") {
33249
+ writer.uint32(18).string(message.email);
33250
+ }
33251
+ return writer;
33252
+ },
33253
+ decode(input, length) {
33254
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
33255
+ let end = length === undefined ? reader.len : reader.pos + length;
33256
+ const message = createBaseGetMezonAccountRequest();
33257
+ while (reader.pos < end) {
33258
+ const tag = reader.uint32();
33259
+ switch (tag >>> 3) {
33260
+ case 1:
33261
+ if (tag !== 10) {
33262
+ break;
33263
+ }
33264
+ message.secret = reader.string();
33265
+ continue;
33266
+ case 2:
33267
+ if (tag !== 18) {
33268
+ break;
33269
+ }
33270
+ message.email = reader.string();
33271
+ continue;
33272
+ }
33273
+ if ((tag & 7) === 4 || tag === 0) {
33274
+ break;
33275
+ }
33276
+ reader.skipType(tag & 7);
33277
+ }
33278
+ return message;
33279
+ },
33280
+ fromJSON(object) {
33281
+ return {
33282
+ secret: isSet(object.secret) ? globalThis.String(object.secret) : "",
33283
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
33284
+ };
33285
+ },
33286
+ toJSON(message) {
33287
+ const obj = {};
33288
+ if (message.secret !== "") {
33289
+ obj.secret = message.secret;
33290
+ }
33291
+ if (message.email !== "") {
33292
+ obj.email = message.email;
33293
+ }
33294
+ return obj;
33295
+ },
33296
+ create(base) {
33297
+ return GetMezonAccountRequest.fromPartial(base ?? {});
33298
+ },
33299
+ fromPartial(object) {
33300
+ const message = createBaseGetMezonAccountRequest();
33301
+ message.secret = object.secret ?? "";
33302
+ message.email = object.email ?? "";
33303
+ return message;
33304
+ },
33305
+ };
33306
+ function createBaseMessage2InboxRequest() {
33307
+ return {
33308
+ message_id: "",
33309
+ channel_id: "",
33310
+ clan_id: "",
33311
+ avatar: "",
33312
+ content: "",
33313
+ mentions: "",
33314
+ attachments: "",
33315
+ reactions: "",
33316
+ references: "",
33317
+ };
33318
+ }
33319
+ export const Message2InboxRequest = {
33320
+ encode(message, writer = _m0.Writer.create()) {
33321
+ if (message.message_id !== "") {
33322
+ writer.uint32(10).string(message.message_id);
33323
+ }
33324
+ if (message.channel_id !== "") {
33325
+ writer.uint32(18).string(message.channel_id);
33326
+ }
33327
+ if (message.clan_id !== "") {
33328
+ writer.uint32(26).string(message.clan_id);
33329
+ }
33330
+ if (message.avatar !== "") {
33331
+ writer.uint32(34).string(message.avatar);
33332
+ }
33333
+ if (message.content !== "") {
33334
+ writer.uint32(42).string(message.content);
33335
+ }
33336
+ if (message.mentions !== "") {
33337
+ writer.uint32(50).string(message.mentions);
33338
+ }
33339
+ if (message.attachments !== "") {
33340
+ writer.uint32(58).string(message.attachments);
33341
+ }
33342
+ if (message.reactions !== "") {
33343
+ writer.uint32(66).string(message.reactions);
33344
+ }
33345
+ if (message.references !== "") {
33346
+ writer.uint32(74).string(message.references);
33347
+ }
33348
+ return writer;
33349
+ },
33350
+ decode(input, length) {
33351
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
33352
+ let end = length === undefined ? reader.len : reader.pos + length;
33353
+ const message = createBaseMessage2InboxRequest();
33354
+ while (reader.pos < end) {
33355
+ const tag = reader.uint32();
33356
+ switch (tag >>> 3) {
33357
+ case 1:
33358
+ if (tag !== 10) {
33359
+ break;
33360
+ }
33361
+ message.message_id = reader.string();
33362
+ continue;
33363
+ case 2:
33364
+ if (tag !== 18) {
33365
+ break;
33366
+ }
33367
+ message.channel_id = reader.string();
33368
+ continue;
33369
+ case 3:
33370
+ if (tag !== 26) {
33371
+ break;
33372
+ }
33373
+ message.clan_id = reader.string();
33374
+ continue;
33375
+ case 4:
33376
+ if (tag !== 34) {
33377
+ break;
33378
+ }
33379
+ message.avatar = reader.string();
33380
+ continue;
33381
+ case 5:
33382
+ if (tag !== 42) {
33383
+ break;
33384
+ }
33385
+ message.content = reader.string();
33386
+ continue;
33387
+ case 6:
33388
+ if (tag !== 50) {
33389
+ break;
33390
+ }
33391
+ message.mentions = reader.string();
33392
+ continue;
33393
+ case 7:
33394
+ if (tag !== 58) {
33395
+ break;
33396
+ }
33397
+ message.attachments = reader.string();
33398
+ continue;
33399
+ case 8:
33400
+ if (tag !== 66) {
33401
+ break;
33402
+ }
33403
+ message.reactions = reader.string();
33404
+ continue;
33405
+ case 9:
33406
+ if (tag !== 74) {
33407
+ break;
33408
+ }
33409
+ message.references = reader.string();
33410
+ continue;
33411
+ }
33412
+ if ((tag & 7) === 4 || tag === 0) {
33413
+ break;
33414
+ }
33415
+ reader.skipType(tag & 7);
33416
+ }
33417
+ return message;
33418
+ },
33419
+ fromJSON(object) {
33420
+ return {
33421
+ message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
33422
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
33423
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
33424
+ avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
33425
+ content: isSet(object.content) ? globalThis.String(object.content) : "",
33426
+ mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
33427
+ attachments: isSet(object.attachments) ? globalThis.String(object.attachments) : "",
33428
+ reactions: isSet(object.reactions) ? globalThis.String(object.reactions) : "",
33429
+ references: isSet(object.references) ? globalThis.String(object.references) : "",
33430
+ };
33431
+ },
33432
+ toJSON(message) {
33433
+ const obj = {};
33434
+ if (message.message_id !== "") {
33435
+ obj.message_id = message.message_id;
33436
+ }
33437
+ if (message.channel_id !== "") {
33438
+ obj.channel_id = message.channel_id;
33439
+ }
33440
+ if (message.clan_id !== "") {
33441
+ obj.clan_id = message.clan_id;
33442
+ }
33443
+ if (message.avatar !== "") {
33444
+ obj.avatar = message.avatar;
33445
+ }
33446
+ if (message.content !== "") {
33447
+ obj.content = message.content;
33448
+ }
33449
+ if (message.mentions !== "") {
33450
+ obj.mentions = message.mentions;
33451
+ }
33452
+ if (message.attachments !== "") {
33453
+ obj.attachments = message.attachments;
33454
+ }
33455
+ if (message.reactions !== "") {
33456
+ obj.reactions = message.reactions;
33457
+ }
33458
+ if (message.references !== "") {
33459
+ obj.references = message.references;
33460
+ }
33461
+ return obj;
33462
+ },
33463
+ create(base) {
33464
+ return Message2InboxRequest.fromPartial(base ?? {});
33465
+ },
33466
+ fromPartial(object) {
33467
+ const message = createBaseMessage2InboxRequest();
33468
+ message.message_id = object.message_id ?? "";
33469
+ message.channel_id = object.channel_id ?? "";
33470
+ message.clan_id = object.clan_id ?? "";
33471
+ message.avatar = object.avatar ?? "";
33472
+ message.content = object.content ?? "";
33473
+ message.mentions = object.mentions ?? "";
33474
+ message.attachments = object.attachments ?? "";
33475
+ message.reactions = object.reactions ?? "";
33476
+ message.references = object.references ?? "";
33477
+ return message;
33478
+ },
33479
+ };
32561
33480
  function bytesFromBase64(b64) {
32562
33481
  if (globalThis.Buffer) {
32563
33482
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));