mezon-js-protobuf 1.5.81 → 1.5.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/api.ts CHANGED
@@ -1696,8 +1696,6 @@ export interface ClanProfile {
1696
1696
  avatar: string;
1697
1697
  /** id clan */
1698
1698
  clan_id: string;
1699
- /** badge count */
1700
- badge_count: number;
1701
1699
  }
1702
1700
 
1703
1701
  /** information user by clan requset */
@@ -1845,6 +1843,8 @@ export interface ChannelDescription {
1845
1843
  about_me: string[];
1846
1844
  /** clan_name */
1847
1845
  clan_name: string;
1846
+ /** app url */
1847
+ app_url: string;
1848
1848
  }
1849
1849
 
1850
1850
  /** A list of channel description, usually a result of a list operation. */
@@ -1924,7 +1924,11 @@ export interface UpdateChannelDescRequest {
1924
1924
  | string
1925
1925
  | undefined;
1926
1926
  /** The category of channel */
1927
- category_id: string | undefined;
1927
+ category_id:
1928
+ | string
1929
+ | undefined;
1930
+ /** app url for channel type app */
1931
+ app_url: string | undefined;
1928
1932
  }
1929
1933
 
1930
1934
  /** Update fields in a given channel. */
@@ -3069,6 +3073,45 @@ export interface PermissionRoleChannelListEventResponse {
3069
3073
  permission_role_channel: PermissionRoleChannel[];
3070
3074
  }
3071
3075
 
3076
+ export interface ChannelSettingListRequest {
3077
+ clan_id: string;
3078
+ parent_id: string;
3079
+ category_id: string;
3080
+ private: number | undefined;
3081
+ active: number | undefined;
3082
+ status: number | undefined;
3083
+ type: number | undefined;
3084
+ limit: number | undefined;
3085
+ page: number | undefined;
3086
+ }
3087
+
3088
+ export interface ChannelSettingItem {
3089
+ id: string;
3090
+ creatorId: string;
3091
+ parentId: string;
3092
+ channelLabel: string;
3093
+ categoryId: string;
3094
+ meetingCode: string;
3095
+ channelPrivate: number;
3096
+ channelType: number;
3097
+ active: number;
3098
+ user_ids: string[];
3099
+ }
3100
+
3101
+ export interface ChannelSettingListResponse {
3102
+ clan_id: string;
3103
+ channel_setting_list: ChannelSettingItem[];
3104
+ }
3105
+
3106
+ export interface MarkAsReadRequest {
3107
+ /** channel id */
3108
+ channel_id: string;
3109
+ /** category_id */
3110
+ category_id: string;
3111
+ /** clan id */
3112
+ clan_id: string;
3113
+ }
3114
+
3072
3115
  function createBaseAccount(): Account {
3073
3116
  return {
3074
3117
  user: undefined,
@@ -14631,7 +14674,7 @@ export const LinkInviteUser = {
14631
14674
  };
14632
14675
 
14633
14676
  function createBaseClanProfile(): ClanProfile {
14634
- return { user_id: "", nick_name: "", avatar: "", clan_id: "", badge_count: 0 };
14677
+ return { user_id: "", nick_name: "", avatar: "", clan_id: "" };
14635
14678
  }
14636
14679
 
14637
14680
  export const ClanProfile = {
@@ -14648,9 +14691,6 @@ export const ClanProfile = {
14648
14691
  if (message.clan_id !== "") {
14649
14692
  writer.uint32(34).string(message.clan_id);
14650
14693
  }
14651
- if (message.badge_count !== 0) {
14652
- writer.uint32(40).int32(message.badge_count);
14653
- }
14654
14694
  return writer;
14655
14695
  },
14656
14696
 
@@ -14689,13 +14729,6 @@ export const ClanProfile = {
14689
14729
 
14690
14730
  message.clan_id = reader.string();
14691
14731
  continue;
14692
- case 5:
14693
- if (tag !== 40) {
14694
- break;
14695
- }
14696
-
14697
- message.badge_count = reader.int32();
14698
- continue;
14699
14732
  }
14700
14733
  if ((tag & 7) === 4 || tag === 0) {
14701
14734
  break;
@@ -14711,7 +14744,6 @@ export const ClanProfile = {
14711
14744
  nick_name: isSet(object.nick_name) ? globalThis.String(object.nick_name) : "",
14712
14745
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
14713
14746
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
14714
- badge_count: isSet(object.badge_count) ? globalThis.Number(object.badge_count) : 0,
14715
14747
  };
14716
14748
  },
14717
14749
 
@@ -14729,9 +14761,6 @@ export const ClanProfile = {
14729
14761
  if (message.clan_id !== "") {
14730
14762
  obj.clan_id = message.clan_id;
14731
14763
  }
14732
- if (message.badge_count !== 0) {
14733
- obj.badge_count = Math.round(message.badge_count);
14734
- }
14735
14764
  return obj;
14736
14765
  },
14737
14766
 
@@ -14744,7 +14773,6 @@ export const ClanProfile = {
14744
14773
  message.nick_name = object.nick_name ?? "";
14745
14774
  message.avatar = object.avatar ?? "";
14746
14775
  message.clan_id = object.clan_id ?? "";
14747
- message.badge_count = object.badge_count ?? 0;
14748
14776
  return message;
14749
14777
  },
14750
14778
  };
@@ -15662,6 +15690,7 @@ function createBaseChannelDescription(): ChannelDescription {
15662
15690
  metadata: [],
15663
15691
  about_me: [],
15664
15692
  clan_name: "",
15693
+ app_url: "",
15665
15694
  };
15666
15695
  }
15667
15696
 
@@ -15744,6 +15773,9 @@ export const ChannelDescription = {
15744
15773
  if (message.clan_name !== "") {
15745
15774
  writer.uint32(202).string(message.clan_name);
15746
15775
  }
15776
+ if (message.app_url !== "") {
15777
+ writer.uint32(210).string(message.app_url);
15778
+ }
15747
15779
  return writer;
15748
15780
  },
15749
15781
 
@@ -15939,6 +15971,13 @@ export const ChannelDescription = {
15939
15971
 
15940
15972
  message.clan_name = reader.string();
15941
15973
  continue;
15974
+ case 26:
15975
+ if (tag !== 210) {
15976
+ break;
15977
+ }
15978
+
15979
+ message.app_url = reader.string();
15980
+ continue;
15942
15981
  }
15943
15982
  if ((tag & 7) === 4 || tag === 0) {
15944
15983
  break;
@@ -15983,6 +16022,7 @@ export const ChannelDescription = {
15983
16022
  metadata: globalThis.Array.isArray(object?.metadata) ? object.metadata.map((e: any) => globalThis.String(e)) : [],
15984
16023
  about_me: globalThis.Array.isArray(object?.about_me) ? object.about_me.map((e: any) => globalThis.String(e)) : [],
15985
16024
  clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
16025
+ app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
15986
16026
  };
15987
16027
  },
15988
16028
 
@@ -16063,6 +16103,9 @@ export const ChannelDescription = {
16063
16103
  if (message.clan_name !== "") {
16064
16104
  obj.clan_name = message.clan_name;
16065
16105
  }
16106
+ if (message.app_url !== "") {
16107
+ obj.app_url = message.app_url;
16108
+ }
16066
16109
  return obj;
16067
16110
  },
16068
16111
 
@@ -16100,6 +16143,7 @@ export const ChannelDescription = {
16100
16143
  message.metadata = object.metadata?.map((e) => e) || [];
16101
16144
  message.about_me = object.about_me?.map((e) => e) || [];
16102
16145
  message.clan_name = object.clan_name ?? "";
16146
+ message.app_url = object.app_url ?? "";
16103
16147
  return message;
16104
16148
  },
16105
16149
  };
@@ -16650,7 +16694,7 @@ export const DeleteChannelDescRequest = {
16650
16694
  };
16651
16695
 
16652
16696
  function createBaseUpdateChannelDescRequest(): UpdateChannelDescRequest {
16653
- return { channel_id: "", channel_label: undefined, category_id: undefined };
16697
+ return { channel_id: "", channel_label: undefined, category_id: undefined, app_url: undefined };
16654
16698
  }
16655
16699
 
16656
16700
  export const UpdateChannelDescRequest = {
@@ -16664,6 +16708,9 @@ export const UpdateChannelDescRequest = {
16664
16708
  if (message.category_id !== undefined) {
16665
16709
  StringValue.encode({ value: message.category_id! }, writer.uint32(26).fork()).ldelim();
16666
16710
  }
16711
+ if (message.app_url !== undefined) {
16712
+ StringValue.encode({ value: message.app_url! }, writer.uint32(34).fork()).ldelim();
16713
+ }
16667
16714
  return writer;
16668
16715
  },
16669
16716
 
@@ -16695,6 +16742,13 @@ export const UpdateChannelDescRequest = {
16695
16742
 
16696
16743
  message.category_id = StringValue.decode(reader, reader.uint32()).value;
16697
16744
  continue;
16745
+ case 4:
16746
+ if (tag !== 34) {
16747
+ break;
16748
+ }
16749
+
16750
+ message.app_url = StringValue.decode(reader, reader.uint32()).value;
16751
+ continue;
16698
16752
  }
16699
16753
  if ((tag & 7) === 4 || tag === 0) {
16700
16754
  break;
@@ -16709,6 +16763,7 @@ export const UpdateChannelDescRequest = {
16709
16763
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
16710
16764
  channel_label: isSet(object.channel_label) ? String(object.channel_label) : undefined,
16711
16765
  category_id: isSet(object.category_id) ? String(object.category_id) : undefined,
16766
+ app_url: isSet(object.app_url) ? String(object.app_url) : undefined,
16712
16767
  };
16713
16768
  },
16714
16769
 
@@ -16723,6 +16778,9 @@ export const UpdateChannelDescRequest = {
16723
16778
  if (message.category_id !== undefined) {
16724
16779
  obj.category_id = message.category_id;
16725
16780
  }
16781
+ if (message.app_url !== undefined) {
16782
+ obj.app_url = message.app_url;
16783
+ }
16726
16784
  return obj;
16727
16785
  },
16728
16786
 
@@ -16734,6 +16792,7 @@ export const UpdateChannelDescRequest = {
16734
16792
  message.channel_id = object.channel_id ?? "";
16735
16793
  message.channel_label = object.channel_label ?? undefined;
16736
16794
  message.category_id = object.category_id ?? undefined;
16795
+ message.app_url = object.app_url ?? undefined;
16737
16796
  return message;
16738
16797
  },
16739
16798
  };
@@ -28951,6 +29010,565 @@ export const PermissionRoleChannelListEventResponse = {
28951
29010
  },
28952
29011
  };
28953
29012
 
29013
+ function createBaseChannelSettingListRequest(): ChannelSettingListRequest {
29014
+ return {
29015
+ clan_id: "",
29016
+ parent_id: "",
29017
+ category_id: "",
29018
+ private: undefined,
29019
+ active: undefined,
29020
+ status: undefined,
29021
+ type: undefined,
29022
+ limit: undefined,
29023
+ page: undefined,
29024
+ };
29025
+ }
29026
+
29027
+ export const ChannelSettingListRequest = {
29028
+ encode(message: ChannelSettingListRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
29029
+ if (message.clan_id !== "") {
29030
+ writer.uint32(10).string(message.clan_id);
29031
+ }
29032
+ if (message.parent_id !== "") {
29033
+ writer.uint32(18).string(message.parent_id);
29034
+ }
29035
+ if (message.category_id !== "") {
29036
+ writer.uint32(26).string(message.category_id);
29037
+ }
29038
+ if (message.private !== undefined) {
29039
+ Int32Value.encode({ value: message.private! }, writer.uint32(34).fork()).ldelim();
29040
+ }
29041
+ if (message.active !== undefined) {
29042
+ Int32Value.encode({ value: message.active! }, writer.uint32(42).fork()).ldelim();
29043
+ }
29044
+ if (message.status !== undefined) {
29045
+ Int32Value.encode({ value: message.status! }, writer.uint32(50).fork()).ldelim();
29046
+ }
29047
+ if (message.type !== undefined) {
29048
+ Int32Value.encode({ value: message.type! }, writer.uint32(58).fork()).ldelim();
29049
+ }
29050
+ if (message.limit !== undefined) {
29051
+ Int32Value.encode({ value: message.limit! }, writer.uint32(66).fork()).ldelim();
29052
+ }
29053
+ if (message.page !== undefined) {
29054
+ Int32Value.encode({ value: message.page! }, writer.uint32(74).fork()).ldelim();
29055
+ }
29056
+ return writer;
29057
+ },
29058
+
29059
+ decode(input: _m0.Reader | Uint8Array, length?: number): ChannelSettingListRequest {
29060
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29061
+ let end = length === undefined ? reader.len : reader.pos + length;
29062
+ const message = createBaseChannelSettingListRequest();
29063
+ while (reader.pos < end) {
29064
+ const tag = reader.uint32();
29065
+ switch (tag >>> 3) {
29066
+ case 1:
29067
+ if (tag !== 10) {
29068
+ break;
29069
+ }
29070
+
29071
+ message.clan_id = reader.string();
29072
+ continue;
29073
+ case 2:
29074
+ if (tag !== 18) {
29075
+ break;
29076
+ }
29077
+
29078
+ message.parent_id = reader.string();
29079
+ continue;
29080
+ case 3:
29081
+ if (tag !== 26) {
29082
+ break;
29083
+ }
29084
+
29085
+ message.category_id = reader.string();
29086
+ continue;
29087
+ case 4:
29088
+ if (tag !== 34) {
29089
+ break;
29090
+ }
29091
+
29092
+ message.private = Int32Value.decode(reader, reader.uint32()).value;
29093
+ continue;
29094
+ case 5:
29095
+ if (tag !== 42) {
29096
+ break;
29097
+ }
29098
+
29099
+ message.active = Int32Value.decode(reader, reader.uint32()).value;
29100
+ continue;
29101
+ case 6:
29102
+ if (tag !== 50) {
29103
+ break;
29104
+ }
29105
+
29106
+ message.status = Int32Value.decode(reader, reader.uint32()).value;
29107
+ continue;
29108
+ case 7:
29109
+ if (tag !== 58) {
29110
+ break;
29111
+ }
29112
+
29113
+ message.type = Int32Value.decode(reader, reader.uint32()).value;
29114
+ continue;
29115
+ case 8:
29116
+ if (tag !== 66) {
29117
+ break;
29118
+ }
29119
+
29120
+ message.limit = Int32Value.decode(reader, reader.uint32()).value;
29121
+ continue;
29122
+ case 9:
29123
+ if (tag !== 74) {
29124
+ break;
29125
+ }
29126
+
29127
+ message.page = Int32Value.decode(reader, reader.uint32()).value;
29128
+ continue;
29129
+ }
29130
+ if ((tag & 7) === 4 || tag === 0) {
29131
+ break;
29132
+ }
29133
+ reader.skipType(tag & 7);
29134
+ }
29135
+ return message;
29136
+ },
29137
+
29138
+ fromJSON(object: any): ChannelSettingListRequest {
29139
+ return {
29140
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
29141
+ parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
29142
+ category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
29143
+ private: isSet(object.private) ? Number(object.private) : undefined,
29144
+ active: isSet(object.active) ? Number(object.active) : undefined,
29145
+ status: isSet(object.status) ? Number(object.status) : undefined,
29146
+ type: isSet(object.type) ? Number(object.type) : undefined,
29147
+ limit: isSet(object.limit) ? Number(object.limit) : undefined,
29148
+ page: isSet(object.page) ? Number(object.page) : undefined,
29149
+ };
29150
+ },
29151
+
29152
+ toJSON(message: ChannelSettingListRequest): unknown {
29153
+ const obj: any = {};
29154
+ if (message.clan_id !== "") {
29155
+ obj.clan_id = message.clan_id;
29156
+ }
29157
+ if (message.parent_id !== "") {
29158
+ obj.parent_id = message.parent_id;
29159
+ }
29160
+ if (message.category_id !== "") {
29161
+ obj.category_id = message.category_id;
29162
+ }
29163
+ if (message.private !== undefined) {
29164
+ obj.private = message.private;
29165
+ }
29166
+ if (message.active !== undefined) {
29167
+ obj.active = message.active;
29168
+ }
29169
+ if (message.status !== undefined) {
29170
+ obj.status = message.status;
29171
+ }
29172
+ if (message.type !== undefined) {
29173
+ obj.type = message.type;
29174
+ }
29175
+ if (message.limit !== undefined) {
29176
+ obj.limit = message.limit;
29177
+ }
29178
+ if (message.page !== undefined) {
29179
+ obj.page = message.page;
29180
+ }
29181
+ return obj;
29182
+ },
29183
+
29184
+ create<I extends Exact<DeepPartial<ChannelSettingListRequest>, I>>(base?: I): ChannelSettingListRequest {
29185
+ return ChannelSettingListRequest.fromPartial(base ?? ({} as any));
29186
+ },
29187
+ fromPartial<I extends Exact<DeepPartial<ChannelSettingListRequest>, I>>(object: I): ChannelSettingListRequest {
29188
+ const message = createBaseChannelSettingListRequest();
29189
+ message.clan_id = object.clan_id ?? "";
29190
+ message.parent_id = object.parent_id ?? "";
29191
+ message.category_id = object.category_id ?? "";
29192
+ message.private = object.private ?? undefined;
29193
+ message.active = object.active ?? undefined;
29194
+ message.status = object.status ?? undefined;
29195
+ message.type = object.type ?? undefined;
29196
+ message.limit = object.limit ?? undefined;
29197
+ message.page = object.page ?? undefined;
29198
+ return message;
29199
+ },
29200
+ };
29201
+
29202
+ function createBaseChannelSettingItem(): ChannelSettingItem {
29203
+ return {
29204
+ id: "",
29205
+ creatorId: "",
29206
+ parentId: "",
29207
+ channelLabel: "",
29208
+ categoryId: "",
29209
+ meetingCode: "",
29210
+ channelPrivate: 0,
29211
+ channelType: 0,
29212
+ active: 0,
29213
+ user_ids: [],
29214
+ };
29215
+ }
29216
+
29217
+ export const ChannelSettingItem = {
29218
+ encode(message: ChannelSettingItem, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
29219
+ if (message.id !== "") {
29220
+ writer.uint32(10).string(message.id);
29221
+ }
29222
+ if (message.creatorId !== "") {
29223
+ writer.uint32(18).string(message.creatorId);
29224
+ }
29225
+ if (message.parentId !== "") {
29226
+ writer.uint32(26).string(message.parentId);
29227
+ }
29228
+ if (message.channelLabel !== "") {
29229
+ writer.uint32(34).string(message.channelLabel);
29230
+ }
29231
+ if (message.categoryId !== "") {
29232
+ writer.uint32(42).string(message.categoryId);
29233
+ }
29234
+ if (message.meetingCode !== "") {
29235
+ writer.uint32(50).string(message.meetingCode);
29236
+ }
29237
+ if (message.channelPrivate !== 0) {
29238
+ writer.uint32(56).int32(message.channelPrivate);
29239
+ }
29240
+ if (message.channelType !== 0) {
29241
+ writer.uint32(64).int32(message.channelType);
29242
+ }
29243
+ if (message.active !== 0) {
29244
+ writer.uint32(72).int32(message.active);
29245
+ }
29246
+ for (const v of message.user_ids) {
29247
+ writer.uint32(82).string(v!);
29248
+ }
29249
+ return writer;
29250
+ },
29251
+
29252
+ decode(input: _m0.Reader | Uint8Array, length?: number): ChannelSettingItem {
29253
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29254
+ let end = length === undefined ? reader.len : reader.pos + length;
29255
+ const message = createBaseChannelSettingItem();
29256
+ while (reader.pos < end) {
29257
+ const tag = reader.uint32();
29258
+ switch (tag >>> 3) {
29259
+ case 1:
29260
+ if (tag !== 10) {
29261
+ break;
29262
+ }
29263
+
29264
+ message.id = reader.string();
29265
+ continue;
29266
+ case 2:
29267
+ if (tag !== 18) {
29268
+ break;
29269
+ }
29270
+
29271
+ message.creatorId = reader.string();
29272
+ continue;
29273
+ case 3:
29274
+ if (tag !== 26) {
29275
+ break;
29276
+ }
29277
+
29278
+ message.parentId = reader.string();
29279
+ continue;
29280
+ case 4:
29281
+ if (tag !== 34) {
29282
+ break;
29283
+ }
29284
+
29285
+ message.channelLabel = reader.string();
29286
+ continue;
29287
+ case 5:
29288
+ if (tag !== 42) {
29289
+ break;
29290
+ }
29291
+
29292
+ message.categoryId = reader.string();
29293
+ continue;
29294
+ case 6:
29295
+ if (tag !== 50) {
29296
+ break;
29297
+ }
29298
+
29299
+ message.meetingCode = reader.string();
29300
+ continue;
29301
+ case 7:
29302
+ if (tag !== 56) {
29303
+ break;
29304
+ }
29305
+
29306
+ message.channelPrivate = reader.int32();
29307
+ continue;
29308
+ case 8:
29309
+ if (tag !== 64) {
29310
+ break;
29311
+ }
29312
+
29313
+ message.channelType = reader.int32();
29314
+ continue;
29315
+ case 9:
29316
+ if (tag !== 72) {
29317
+ break;
29318
+ }
29319
+
29320
+ message.active = reader.int32();
29321
+ continue;
29322
+ case 10:
29323
+ if (tag !== 82) {
29324
+ break;
29325
+ }
29326
+
29327
+ message.user_ids.push(reader.string());
29328
+ continue;
29329
+ }
29330
+ if ((tag & 7) === 4 || tag === 0) {
29331
+ break;
29332
+ }
29333
+ reader.skipType(tag & 7);
29334
+ }
29335
+ return message;
29336
+ },
29337
+
29338
+ fromJSON(object: any): ChannelSettingItem {
29339
+ return {
29340
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
29341
+ creatorId: isSet(object.creatorId) ? globalThis.String(object.creatorId) : "",
29342
+ parentId: isSet(object.parentId) ? globalThis.String(object.parentId) : "",
29343
+ channelLabel: isSet(object.channelLabel) ? globalThis.String(object.channelLabel) : "",
29344
+ categoryId: isSet(object.categoryId) ? globalThis.String(object.categoryId) : "",
29345
+ meetingCode: isSet(object.meetingCode) ? globalThis.String(object.meetingCode) : "",
29346
+ channelPrivate: isSet(object.channelPrivate) ? globalThis.Number(object.channelPrivate) : 0,
29347
+ channelType: isSet(object.channelType) ? globalThis.Number(object.channelType) : 0,
29348
+ active: isSet(object.active) ? globalThis.Number(object.active) : 0,
29349
+ user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
29350
+ };
29351
+ },
29352
+
29353
+ toJSON(message: ChannelSettingItem): unknown {
29354
+ const obj: any = {};
29355
+ if (message.id !== "") {
29356
+ obj.id = message.id;
29357
+ }
29358
+ if (message.creatorId !== "") {
29359
+ obj.creatorId = message.creatorId;
29360
+ }
29361
+ if (message.parentId !== "") {
29362
+ obj.parentId = message.parentId;
29363
+ }
29364
+ if (message.channelLabel !== "") {
29365
+ obj.channelLabel = message.channelLabel;
29366
+ }
29367
+ if (message.categoryId !== "") {
29368
+ obj.categoryId = message.categoryId;
29369
+ }
29370
+ if (message.meetingCode !== "") {
29371
+ obj.meetingCode = message.meetingCode;
29372
+ }
29373
+ if (message.channelPrivate !== 0) {
29374
+ obj.channelPrivate = Math.round(message.channelPrivate);
29375
+ }
29376
+ if (message.channelType !== 0) {
29377
+ obj.channelType = Math.round(message.channelType);
29378
+ }
29379
+ if (message.active !== 0) {
29380
+ obj.active = Math.round(message.active);
29381
+ }
29382
+ if (message.user_ids?.length) {
29383
+ obj.user_ids = message.user_ids;
29384
+ }
29385
+ return obj;
29386
+ },
29387
+
29388
+ create<I extends Exact<DeepPartial<ChannelSettingItem>, I>>(base?: I): ChannelSettingItem {
29389
+ return ChannelSettingItem.fromPartial(base ?? ({} as any));
29390
+ },
29391
+ fromPartial<I extends Exact<DeepPartial<ChannelSettingItem>, I>>(object: I): ChannelSettingItem {
29392
+ const message = createBaseChannelSettingItem();
29393
+ message.id = object.id ?? "";
29394
+ message.creatorId = object.creatorId ?? "";
29395
+ message.parentId = object.parentId ?? "";
29396
+ message.channelLabel = object.channelLabel ?? "";
29397
+ message.categoryId = object.categoryId ?? "";
29398
+ message.meetingCode = object.meetingCode ?? "";
29399
+ message.channelPrivate = object.channelPrivate ?? 0;
29400
+ message.channelType = object.channelType ?? 0;
29401
+ message.active = object.active ?? 0;
29402
+ message.user_ids = object.user_ids?.map((e) => e) || [];
29403
+ return message;
29404
+ },
29405
+ };
29406
+
29407
+ function createBaseChannelSettingListResponse(): ChannelSettingListResponse {
29408
+ return { clan_id: "", channel_setting_list: [] };
29409
+ }
29410
+
29411
+ export const ChannelSettingListResponse = {
29412
+ encode(message: ChannelSettingListResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
29413
+ if (message.clan_id !== "") {
29414
+ writer.uint32(10).string(message.clan_id);
29415
+ }
29416
+ for (const v of message.channel_setting_list) {
29417
+ ChannelSettingItem.encode(v!, writer.uint32(18).fork()).ldelim();
29418
+ }
29419
+ return writer;
29420
+ },
29421
+
29422
+ decode(input: _m0.Reader | Uint8Array, length?: number): ChannelSettingListResponse {
29423
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29424
+ let end = length === undefined ? reader.len : reader.pos + length;
29425
+ const message = createBaseChannelSettingListResponse();
29426
+ while (reader.pos < end) {
29427
+ const tag = reader.uint32();
29428
+ switch (tag >>> 3) {
29429
+ case 1:
29430
+ if (tag !== 10) {
29431
+ break;
29432
+ }
29433
+
29434
+ message.clan_id = reader.string();
29435
+ continue;
29436
+ case 2:
29437
+ if (tag !== 18) {
29438
+ break;
29439
+ }
29440
+
29441
+ message.channel_setting_list.push(ChannelSettingItem.decode(reader, reader.uint32()));
29442
+ continue;
29443
+ }
29444
+ if ((tag & 7) === 4 || tag === 0) {
29445
+ break;
29446
+ }
29447
+ reader.skipType(tag & 7);
29448
+ }
29449
+ return message;
29450
+ },
29451
+
29452
+ fromJSON(object: any): ChannelSettingListResponse {
29453
+ return {
29454
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
29455
+ channel_setting_list: globalThis.Array.isArray(object?.channel_setting_list)
29456
+ ? object.channel_setting_list.map((e: any) => ChannelSettingItem.fromJSON(e))
29457
+ : [],
29458
+ };
29459
+ },
29460
+
29461
+ toJSON(message: ChannelSettingListResponse): unknown {
29462
+ const obj: any = {};
29463
+ if (message.clan_id !== "") {
29464
+ obj.clan_id = message.clan_id;
29465
+ }
29466
+ if (message.channel_setting_list?.length) {
29467
+ obj.channel_setting_list = message.channel_setting_list.map((e) => ChannelSettingItem.toJSON(e));
29468
+ }
29469
+ return obj;
29470
+ },
29471
+
29472
+ create<I extends Exact<DeepPartial<ChannelSettingListResponse>, I>>(base?: I): ChannelSettingListResponse {
29473
+ return ChannelSettingListResponse.fromPartial(base ?? ({} as any));
29474
+ },
29475
+ fromPartial<I extends Exact<DeepPartial<ChannelSettingListResponse>, I>>(object: I): ChannelSettingListResponse {
29476
+ const message = createBaseChannelSettingListResponse();
29477
+ message.clan_id = object.clan_id ?? "";
29478
+ message.channel_setting_list = object.channel_setting_list?.map((e) => ChannelSettingItem.fromPartial(e)) || [];
29479
+ return message;
29480
+ },
29481
+ };
29482
+
29483
+ function createBaseMarkAsReadRequest(): MarkAsReadRequest {
29484
+ return { channel_id: "", category_id: "", clan_id: "" };
29485
+ }
29486
+
29487
+ export const MarkAsReadRequest = {
29488
+ encode(message: MarkAsReadRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
29489
+ if (message.channel_id !== "") {
29490
+ writer.uint32(10).string(message.channel_id);
29491
+ }
29492
+ if (message.category_id !== "") {
29493
+ writer.uint32(18).string(message.category_id);
29494
+ }
29495
+ if (message.clan_id !== "") {
29496
+ writer.uint32(26).string(message.clan_id);
29497
+ }
29498
+ return writer;
29499
+ },
29500
+
29501
+ decode(input: _m0.Reader | Uint8Array, length?: number): MarkAsReadRequest {
29502
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29503
+ let end = length === undefined ? reader.len : reader.pos + length;
29504
+ const message = createBaseMarkAsReadRequest();
29505
+ while (reader.pos < end) {
29506
+ const tag = reader.uint32();
29507
+ switch (tag >>> 3) {
29508
+ case 1:
29509
+ if (tag !== 10) {
29510
+ break;
29511
+ }
29512
+
29513
+ message.channel_id = reader.string();
29514
+ continue;
29515
+ case 2:
29516
+ if (tag !== 18) {
29517
+ break;
29518
+ }
29519
+
29520
+ message.category_id = reader.string();
29521
+ continue;
29522
+ case 3:
29523
+ if (tag !== 26) {
29524
+ break;
29525
+ }
29526
+
29527
+ message.clan_id = reader.string();
29528
+ continue;
29529
+ }
29530
+ if ((tag & 7) === 4 || tag === 0) {
29531
+ break;
29532
+ }
29533
+ reader.skipType(tag & 7);
29534
+ }
29535
+ return message;
29536
+ },
29537
+
29538
+ fromJSON(object: any): MarkAsReadRequest {
29539
+ return {
29540
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
29541
+ category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
29542
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
29543
+ };
29544
+ },
29545
+
29546
+ toJSON(message: MarkAsReadRequest): unknown {
29547
+ const obj: any = {};
29548
+ if (message.channel_id !== "") {
29549
+ obj.channel_id = message.channel_id;
29550
+ }
29551
+ if (message.category_id !== "") {
29552
+ obj.category_id = message.category_id;
29553
+ }
29554
+ if (message.clan_id !== "") {
29555
+ obj.clan_id = message.clan_id;
29556
+ }
29557
+ return obj;
29558
+ },
29559
+
29560
+ create<I extends Exact<DeepPartial<MarkAsReadRequest>, I>>(base?: I): MarkAsReadRequest {
29561
+ return MarkAsReadRequest.fromPartial(base ?? ({} as any));
29562
+ },
29563
+ fromPartial<I extends Exact<DeepPartial<MarkAsReadRequest>, I>>(object: I): MarkAsReadRequest {
29564
+ const message = createBaseMarkAsReadRequest();
29565
+ message.channel_id = object.channel_id ?? "";
29566
+ message.category_id = object.category_id ?? "";
29567
+ message.clan_id = object.clan_id ?? "";
29568
+ return message;
29569
+ },
29570
+ };
29571
+
28954
29572
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
28955
29573
 
28956
29574
  export type DeepPartial<T> = T extends Builtin ? T