mezon-js 2.13.74 → 2.13.76

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.gen.ts CHANGED
@@ -3621,19 +3621,21 @@ export class MezonApi {
3621
3621
  fetchOptions.headers["Authorization"] =
3622
3622
  "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
3623
3623
  }
3624
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3624
3625
 
3625
3626
  return Promise.race([
3626
- fetch(fullUrl, fetchOptions).then((response) => {
3627
+ fetch(fullUrl, fetchOptions).then(async (response) => {
3627
3628
  if (response.status == 204) {
3628
- return response;
3629
+ return {} as ApiSession;
3629
3630
  } else if (response.status >= 200 && response.status < 300) {
3630
- return response.json();
3631
+ const buffer = await response.arrayBuffer();
3632
+ return tsproto.Session.decode(new Uint8Array(buffer)) as unknown as ApiSession;
3631
3633
  } else {
3632
3634
  throw response;
3633
3635
  }
3634
3636
  }),
3635
- new Promise((_, reject) =>
3636
- setTimeout(reject, this.timeoutMs, "Request timed out.")
3637
+ new Promise<never>((_, reject) =>
3638
+ setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3637
3639
  ),
3638
3640
  ]);
3639
3641
  }
@@ -3816,19 +3818,21 @@ export class MezonApi {
3816
3818
  if (basicAuthUsername) {
3817
3819
  fetchOptions.headers["Authorization"] = "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
3818
3820
  }
3821
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3819
3822
 
3820
3823
  return Promise.race([
3821
- fetch(fullUrl, fetchOptions).then((response) => {
3824
+ fetch(fullUrl, fetchOptions).then(async (response) => {
3822
3825
  if (response.status == 204) {
3823
- return response;
3826
+ return {} as ApiSession;
3824
3827
  } else if (response.status >= 200 && response.status < 300) {
3825
- return response.json();
3828
+ const buffer = await response.arrayBuffer();
3829
+ return tsproto.Session.decode(new Uint8Array(buffer)) as unknown as ApiSession;
3826
3830
  } else {
3827
3831
  throw response;
3828
3832
  }
3829
3833
  }),
3830
- new Promise((_, reject) =>
3831
- setTimeout(reject, this.timeoutMs, "Request timed out.")
3834
+ new Promise<never>((_, reject) =>
3835
+ setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3832
3836
  ),
3833
3837
  ]);
3834
3838
  }
@@ -3861,19 +3865,21 @@ export class MezonApi {
3861
3865
  if (basicAuthUsername) {
3862
3866
  fetchOptions.headers["Authorization"] = "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
3863
3867
  }
3868
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3864
3869
 
3865
3870
  return Promise.race([
3866
- fetch(fullUrl, fetchOptions).then((response) => {
3871
+ fetch(fullUrl, fetchOptions).then(async (response) => {
3867
3872
  if (response.status == 204) {
3868
- return response;
3873
+ return {} as ApiSession;
3869
3874
  } else if (response.status >= 200 && response.status < 300) {
3870
- return response.json();
3875
+ const buffer = await response.arrayBuffer();
3876
+ return tsproto.Session.decode(new Uint8Array(buffer)) as unknown as ApiSession;
3871
3877
  } else {
3872
3878
  throw response;
3873
3879
  }
3874
3880
  }),
3875
- new Promise((_, reject) =>
3876
- setTimeout(reject, this.timeoutMs, "Request timed out.")
3881
+ new Promise<never>((_, reject) =>
3882
+ setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3877
3883
  ),
3878
3884
  ]);
3879
3885
  }
@@ -3972,19 +3978,21 @@ export class MezonApi {
3972
3978
  if (bearerToken) {
3973
3979
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3974
3980
  }
3981
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
3975
3982
 
3976
3983
  return Promise.race([
3977
- fetch(fullUrl, fetchOptions).then((response) => {
3984
+ fetch(fullUrl, fetchOptions).then(async (response) => {
3978
3985
  if (response.status == 204) {
3979
- return response;
3986
+ return {} as ApiSession;
3980
3987
  } else if (response.status >= 200 && response.status < 300) {
3981
- return response.json();
3988
+ const buffer = await response.arrayBuffer();
3989
+ return tsproto.Session.decode(new Uint8Array(buffer)) as unknown as ApiSession;
3982
3990
  } else {
3983
3991
  throw response;
3984
3992
  }
3985
3993
  }),
3986
- new Promise((_, reject) =>
3987
- setTimeout(reject, this.timeoutMs, "Request timed out.")
3994
+ new Promise<never>((_, reject) =>
3995
+ setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
3988
3996
  ),
3989
3997
  ]);
3990
3998
  }
@@ -4010,19 +4018,21 @@ export class MezonApi {
4010
4018
  if (basicAuthUsername) {
4011
4019
  fetchOptions.headers["Authorization"] = "Basic " + encode(basicAuthUsername + ":" + basicAuthPassword);
4012
4020
  }
4021
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
4013
4022
 
4014
4023
  return Promise.race([
4015
- fetch(fullUrl, fetchOptions).then((response) => {
4024
+ fetch(fullUrl, fetchOptions).then(async(response) => {
4016
4025
  if (response.status == 204) {
4017
- return response;
4026
+ return {} as ApiSession;
4018
4027
  } else if (response.status >= 200 && response.status < 300) {
4019
- return response.json();
4028
+ const buffer = await response.arrayBuffer();
4029
+ return tsproto.Session.decode(new Uint8Array(buffer)) as unknown as ApiSession;
4020
4030
  } else {
4021
4031
  throw response;
4022
4032
  }
4023
4033
  }),
4024
- new Promise((_, reject) =>
4025
- setTimeout(reject, this.timeoutMs, "Request timed out.")
4034
+ new Promise<never>((_, reject) =>
4035
+ setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
4026
4036
  ),
4027
4037
  ]);
4028
4038
  }
@@ -4049,19 +4059,21 @@ export class MezonApi {
4049
4059
  if (bearerToken) {
4050
4060
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
4051
4061
  }
4062
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
4052
4063
 
4053
4064
  return Promise.race([
4054
- fetch(fullUrl, fetchOptions).then((response) => {
4065
+ fetch(fullUrl, fetchOptions).then(async (response) => {
4055
4066
  if (response.status == 204) {
4056
- return response;
4067
+ return {} as ApiSession;
4057
4068
  } else if (response.status >= 200 && response.status < 300) {
4058
- return response.json();
4069
+ const buffer = await response.arrayBuffer();
4070
+ return tsproto.Session.decode(new Uint8Array(buffer)) as unknown as ApiSession;
4059
4071
  } else {
4060
4072
  throw response;
4061
4073
  }
4062
4074
  }),
4063
- new Promise((_, reject) =>
4064
- setTimeout(reject, this.timeoutMs, "Request timed out.")
4075
+ new Promise<never>((_, reject) =>
4076
+ setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
4065
4077
  ),
4066
4078
  ]);
4067
4079
  }
@@ -11636,19 +11648,21 @@ export class MezonApi {
11636
11648
  if (bearerToken) {
11637
11649
  fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
11638
11650
  }
11651
+ fetchOptions.headers["Accept"] = "application/x-protobuf";
11639
11652
 
11640
11653
  return Promise.race([
11641
- fetch(fullUrl, fetchOptions).then((response) => {
11654
+ fetch(fullUrl, fetchOptions).then(async (response) => {
11642
11655
  if (response.status == 204) {
11643
- return response;
11656
+ return {} as ApiSession;
11644
11657
  } else if (response.status >= 200 && response.status < 300) {
11645
- return response.json();
11658
+ const buffer = await response.arrayBuffer();
11659
+ return tsproto.Session.decode(new Uint8Array(buffer)) as unknown as ApiSession;
11646
11660
  } else {
11647
11661
  throw response;
11648
11662
  }
11649
11663
  }),
11650
- new Promise((_, reject) =>
11651
- setTimeout(reject, this.timeoutMs, "Request timed out.")
11664
+ new Promise<never>((_, reject) =>
11665
+ setTimeout(() => reject(new Error("Request timed out.")), this.timeoutMs)
11652
11666
  ),
11653
11667
  ]);
11654
11668
  }
package/dist/api/api.d.ts CHANGED
@@ -156,7 +156,7 @@ export interface ChannelMessage {
156
156
  /** The unique ID of this message. */
157
157
  message_id: string;
158
158
  /** The code representing a message type or category. */
159
- code: number | undefined;
159
+ code: number;
160
160
  /** Message sender, usually a user ID. */
161
161
  sender_id: string;
162
162
  /** The username of the message sender, if any. */
@@ -1142,7 +1142,7 @@ export interface ChannelMessageHeader {
1142
1142
  reaction: string;
1143
1143
  }
1144
1144
  /** Channel description record */
1145
- export interface ChannelDescription {
1145
+ export interface ChannelDescriptionOld {
1146
1146
  /** The clan of this channel */
1147
1147
  clan_id: string;
1148
1148
  /** The parent channel this message belongs to. */
@@ -1206,6 +1206,71 @@ export interface ChannelDescription {
1206
1206
  /** channel member count */
1207
1207
  member_count: number;
1208
1208
  }
1209
+ /** Channel description record */
1210
+ export interface ChannelDescription {
1211
+ /** The clan of this channel */
1212
+ clan_id: string;
1213
+ /** The parent channel this message belongs to. */
1214
+ parent_id: string;
1215
+ /** The channel this message belongs to. */
1216
+ channel_id: string;
1217
+ /** The category of channel */
1218
+ category_id: string;
1219
+ /** The category name */
1220
+ category_name: string;
1221
+ /** The channel type. */
1222
+ type: number;
1223
+ /** creator ID. */
1224
+ creator_id: string;
1225
+ /** The channel lable */
1226
+ channel_label: string;
1227
+ /** The channel private */
1228
+ channel_private: number;
1229
+ /** DM avatars */
1230
+ avatars: string[];
1231
+ /** List DM user ids */
1232
+ user_ids: string[];
1233
+ /** last message id */
1234
+ last_sent_message: ChannelMessageHeader | undefined;
1235
+ /** last seen message id */
1236
+ last_seen_message: ChannelMessageHeader | undefined;
1237
+ /** DM status */
1238
+ onlines: boolean[];
1239
+ /** meeting code */
1240
+ meeting_code: string;
1241
+ /** count message unread */
1242
+ count_mess_unread: number;
1243
+ /** active channel */
1244
+ active: number;
1245
+ /** last pin message */
1246
+ last_pin_message: string;
1247
+ /** List DM usernames */
1248
+ usernames: string[];
1249
+ /** creator name */
1250
+ creator_name: string;
1251
+ /** create time ms */
1252
+ create_time_seconds: number;
1253
+ /** update time ms */
1254
+ update_time_seconds: number;
1255
+ /** List DM diplay names */
1256
+ display_names: string[];
1257
+ /** channel avatar */
1258
+ channel_avatar: string;
1259
+ /** clan_name */
1260
+ clan_name: string;
1261
+ /** app id */
1262
+ app_id: string;
1263
+ /** channel all message */
1264
+ is_mute: boolean;
1265
+ /** age restricted */
1266
+ age_restricted: number;
1267
+ /** channel description topic */
1268
+ topic: string;
1269
+ /** e2ee */
1270
+ e2ee: number;
1271
+ /** channel member count */
1272
+ member_count: number;
1273
+ }
1209
1274
  /** A list of channel description, usually a result of a list operation. */
1210
1275
  export interface ChannelDescList {
1211
1276
  /** A list of channel. */
@@ -10020,6 +10085,250 @@ export declare const ChannelMessageHeader: {
10020
10085
  reaction?: string | undefined;
10021
10086
  } & { [K_1 in Exclude<keyof I_1, keyof ChannelMessageHeader>]: never; }>(object: I_1): ChannelMessageHeader;
10022
10087
  };
10088
+ export declare const ChannelDescriptionOld: {
10089
+ encode(message: ChannelDescriptionOld, writer?: _m0.Writer): _m0.Writer;
10090
+ decode(input: _m0.Reader | Uint8Array, length?: number): ChannelDescriptionOld;
10091
+ fromJSON(object: any): ChannelDescriptionOld;
10092
+ toJSON(message: ChannelDescriptionOld): unknown;
10093
+ create<I extends {
10094
+ clan_id?: string | undefined;
10095
+ parent_id?: string | undefined;
10096
+ channel_id?: string | undefined;
10097
+ category_id?: string | undefined;
10098
+ category_name?: string | undefined;
10099
+ type?: number | undefined;
10100
+ creator_id?: string | undefined;
10101
+ channel_label?: string | undefined;
10102
+ channel_private?: number | undefined;
10103
+ avatars?: string[] | undefined;
10104
+ user_ids?: string[] | undefined;
10105
+ last_sent_message?: {
10106
+ id?: string | undefined;
10107
+ timestamp_seconds?: number | undefined;
10108
+ sender_id?: string | undefined;
10109
+ content?: string | undefined;
10110
+ attachment?: string | undefined;
10111
+ reference?: string | undefined;
10112
+ mention?: string | undefined;
10113
+ reaction?: string | undefined;
10114
+ } | undefined;
10115
+ last_seen_message?: {
10116
+ id?: string | undefined;
10117
+ timestamp_seconds?: number | undefined;
10118
+ sender_id?: string | undefined;
10119
+ content?: string | undefined;
10120
+ attachment?: string | undefined;
10121
+ reference?: string | undefined;
10122
+ mention?: string | undefined;
10123
+ reaction?: string | undefined;
10124
+ } | undefined;
10125
+ onlines?: boolean[] | undefined;
10126
+ meeting_code?: string | undefined;
10127
+ count_mess_unread?: number | undefined;
10128
+ active?: number | undefined;
10129
+ last_pin_message?: string | undefined;
10130
+ usernames?: string[] | undefined;
10131
+ creator_name?: string | undefined;
10132
+ create_time_seconds?: number | undefined;
10133
+ update_time_seconds?: number | undefined;
10134
+ display_names?: string[] | undefined;
10135
+ channel_avatar?: string | undefined;
10136
+ clan_name?: string | undefined;
10137
+ app_id?: string | undefined;
10138
+ is_mute?: boolean | undefined;
10139
+ age_restricted?: number | undefined;
10140
+ topic?: string | undefined;
10141
+ e2ee?: number | undefined;
10142
+ member_count?: number | undefined;
10143
+ } & {
10144
+ clan_id?: string | undefined;
10145
+ parent_id?: string | undefined;
10146
+ channel_id?: string | undefined;
10147
+ category_id?: string | undefined;
10148
+ category_name?: string | undefined;
10149
+ type?: number | undefined;
10150
+ creator_id?: string | undefined;
10151
+ channel_label?: string | undefined;
10152
+ channel_private?: number | undefined;
10153
+ avatars?: (string[] & string[] & { [K in Exclude<keyof I["avatars"], keyof string[]>]: never; }) | undefined;
10154
+ user_ids?: (string[] & string[] & { [K_1 in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
10155
+ last_sent_message?: ({
10156
+ id?: string | undefined;
10157
+ timestamp_seconds?: number | undefined;
10158
+ sender_id?: string | undefined;
10159
+ content?: string | undefined;
10160
+ attachment?: string | undefined;
10161
+ reference?: string | undefined;
10162
+ mention?: string | undefined;
10163
+ reaction?: string | undefined;
10164
+ } & {
10165
+ id?: string | undefined;
10166
+ timestamp_seconds?: number | undefined;
10167
+ sender_id?: string | undefined;
10168
+ content?: string | undefined;
10169
+ attachment?: string | undefined;
10170
+ reference?: string | undefined;
10171
+ mention?: string | undefined;
10172
+ reaction?: string | undefined;
10173
+ } & { [K_2 in Exclude<keyof I["last_sent_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
10174
+ last_seen_message?: ({
10175
+ id?: string | undefined;
10176
+ timestamp_seconds?: number | undefined;
10177
+ sender_id?: string | undefined;
10178
+ content?: string | undefined;
10179
+ attachment?: string | undefined;
10180
+ reference?: string | undefined;
10181
+ mention?: string | undefined;
10182
+ reaction?: string | undefined;
10183
+ } & {
10184
+ id?: string | undefined;
10185
+ timestamp_seconds?: number | undefined;
10186
+ sender_id?: string | undefined;
10187
+ content?: string | undefined;
10188
+ attachment?: string | undefined;
10189
+ reference?: string | undefined;
10190
+ mention?: string | undefined;
10191
+ reaction?: string | undefined;
10192
+ } & { [K_3 in Exclude<keyof I["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
10193
+ onlines?: (boolean[] & boolean[] & { [K_4 in Exclude<keyof I["onlines"], keyof boolean[]>]: never; }) | undefined;
10194
+ meeting_code?: string | undefined;
10195
+ count_mess_unread?: number | undefined;
10196
+ active?: number | undefined;
10197
+ last_pin_message?: string | undefined;
10198
+ usernames?: (string[] & string[] & { [K_5 in Exclude<keyof I["usernames"], keyof string[]>]: never; }) | undefined;
10199
+ creator_name?: string | undefined;
10200
+ create_time_seconds?: number | undefined;
10201
+ update_time_seconds?: number | undefined;
10202
+ display_names?: (string[] & string[] & { [K_6 in Exclude<keyof I["display_names"], keyof string[]>]: never; }) | undefined;
10203
+ channel_avatar?: string | undefined;
10204
+ clan_name?: string | undefined;
10205
+ app_id?: string | undefined;
10206
+ is_mute?: boolean | undefined;
10207
+ age_restricted?: number | undefined;
10208
+ topic?: string | undefined;
10209
+ e2ee?: number | undefined;
10210
+ member_count?: number | undefined;
10211
+ } & { [K_7 in Exclude<keyof I, keyof ChannelDescriptionOld>]: never; }>(base?: I | undefined): ChannelDescriptionOld;
10212
+ fromPartial<I_1 extends {
10213
+ clan_id?: string | undefined;
10214
+ parent_id?: string | undefined;
10215
+ channel_id?: string | undefined;
10216
+ category_id?: string | undefined;
10217
+ category_name?: string | undefined;
10218
+ type?: number | undefined;
10219
+ creator_id?: string | undefined;
10220
+ channel_label?: string | undefined;
10221
+ channel_private?: number | undefined;
10222
+ avatars?: string[] | undefined;
10223
+ user_ids?: string[] | undefined;
10224
+ last_sent_message?: {
10225
+ id?: string | undefined;
10226
+ timestamp_seconds?: number | undefined;
10227
+ sender_id?: string | undefined;
10228
+ content?: string | undefined;
10229
+ attachment?: string | undefined;
10230
+ reference?: string | undefined;
10231
+ mention?: string | undefined;
10232
+ reaction?: string | undefined;
10233
+ } | undefined;
10234
+ last_seen_message?: {
10235
+ id?: string | undefined;
10236
+ timestamp_seconds?: number | undefined;
10237
+ sender_id?: string | undefined;
10238
+ content?: string | undefined;
10239
+ attachment?: string | undefined;
10240
+ reference?: string | undefined;
10241
+ mention?: string | undefined;
10242
+ reaction?: string | undefined;
10243
+ } | undefined;
10244
+ onlines?: boolean[] | undefined;
10245
+ meeting_code?: string | undefined;
10246
+ count_mess_unread?: number | undefined;
10247
+ active?: number | undefined;
10248
+ last_pin_message?: string | undefined;
10249
+ usernames?: string[] | undefined;
10250
+ creator_name?: string | undefined;
10251
+ create_time_seconds?: number | undefined;
10252
+ update_time_seconds?: number | undefined;
10253
+ display_names?: string[] | undefined;
10254
+ channel_avatar?: string | undefined;
10255
+ clan_name?: string | undefined;
10256
+ app_id?: string | undefined;
10257
+ is_mute?: boolean | undefined;
10258
+ age_restricted?: number | undefined;
10259
+ topic?: string | undefined;
10260
+ e2ee?: number | undefined;
10261
+ member_count?: number | undefined;
10262
+ } & {
10263
+ clan_id?: string | undefined;
10264
+ parent_id?: string | undefined;
10265
+ channel_id?: string | undefined;
10266
+ category_id?: string | undefined;
10267
+ category_name?: string | undefined;
10268
+ type?: number | undefined;
10269
+ creator_id?: string | undefined;
10270
+ channel_label?: string | undefined;
10271
+ channel_private?: number | undefined;
10272
+ avatars?: (string[] & string[] & { [K_8 in Exclude<keyof I_1["avatars"], keyof string[]>]: never; }) | undefined;
10273
+ user_ids?: (string[] & string[] & { [K_9 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
10274
+ last_sent_message?: ({
10275
+ id?: string | undefined;
10276
+ timestamp_seconds?: number | undefined;
10277
+ sender_id?: string | undefined;
10278
+ content?: string | undefined;
10279
+ attachment?: string | undefined;
10280
+ reference?: string | undefined;
10281
+ mention?: string | undefined;
10282
+ reaction?: string | undefined;
10283
+ } & {
10284
+ id?: string | undefined;
10285
+ timestamp_seconds?: number | undefined;
10286
+ sender_id?: string | undefined;
10287
+ content?: string | undefined;
10288
+ attachment?: string | undefined;
10289
+ reference?: string | undefined;
10290
+ mention?: string | undefined;
10291
+ reaction?: string | undefined;
10292
+ } & { [K_10 in Exclude<keyof I_1["last_sent_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
10293
+ last_seen_message?: ({
10294
+ id?: string | undefined;
10295
+ timestamp_seconds?: number | undefined;
10296
+ sender_id?: string | undefined;
10297
+ content?: string | undefined;
10298
+ attachment?: string | undefined;
10299
+ reference?: string | undefined;
10300
+ mention?: string | undefined;
10301
+ reaction?: string | undefined;
10302
+ } & {
10303
+ id?: string | undefined;
10304
+ timestamp_seconds?: number | undefined;
10305
+ sender_id?: string | undefined;
10306
+ content?: string | undefined;
10307
+ attachment?: string | undefined;
10308
+ reference?: string | undefined;
10309
+ mention?: string | undefined;
10310
+ reaction?: string | undefined;
10311
+ } & { [K_11 in Exclude<keyof I_1["last_seen_message"], keyof ChannelMessageHeader>]: never; }) | undefined;
10312
+ onlines?: (boolean[] & boolean[] & { [K_12 in Exclude<keyof I_1["onlines"], keyof boolean[]>]: never; }) | undefined;
10313
+ meeting_code?: string | undefined;
10314
+ count_mess_unread?: number | undefined;
10315
+ active?: number | undefined;
10316
+ last_pin_message?: string | undefined;
10317
+ usernames?: (string[] & string[] & { [K_13 in Exclude<keyof I_1["usernames"], keyof string[]>]: never; }) | undefined;
10318
+ creator_name?: string | undefined;
10319
+ create_time_seconds?: number | undefined;
10320
+ update_time_seconds?: number | undefined;
10321
+ display_names?: (string[] & string[] & { [K_14 in Exclude<keyof I_1["display_names"], keyof string[]>]: never; }) | undefined;
10322
+ channel_avatar?: string | undefined;
10323
+ clan_name?: string | undefined;
10324
+ app_id?: string | undefined;
10325
+ is_mute?: boolean | undefined;
10326
+ age_restricted?: number | undefined;
10327
+ topic?: string | undefined;
10328
+ e2ee?: number | undefined;
10329
+ member_count?: number | undefined;
10330
+ } & { [K_15 in Exclude<keyof I_1, keyof ChannelDescriptionOld>]: never; }>(object: I_1): ChannelDescriptionOld;
10331
+ };
10023
10332
  export declare const ChannelDescription: {
10024
10333
  encode(message: ChannelDescription, writer?: _m0.Writer): _m0.Writer;
10025
10334
  decode(input: _m0.Reader | Uint8Array, length?: number): ChannelDescription;