mezon-js-protobuf 1.8.45 → 1.8.47

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
@@ -173,8 +173,8 @@ export interface Account {
173
173
  | undefined;
174
174
  /** The email address of the user. */
175
175
  email: string;
176
- /** The mezon id in the user's account. */
177
- mezon_id: string;
176
+ /** The qr code in the user's account. */
177
+ qr_code: string;
178
178
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's email was verified. */
179
179
  verify_time:
180
180
  | Date
@@ -214,6 +214,14 @@ export interface AddFriendsRequest {
214
214
  usernames: string[];
215
215
  }
216
216
 
217
+ /** Add one or more friends to the current user. */
218
+ export interface AddFriendsResponse {
219
+ /** The account id of a user. */
220
+ ids: string[];
221
+ /** The account username of a user. */
222
+ usernames: string[];
223
+ }
224
+
217
225
  /** Add users to a group. */
218
226
  export interface AddGroupUsersRequest {
219
227
  /** The group to add users to. */
@@ -3709,7 +3717,7 @@ function createBaseAccount(): Account {
3709
3717
  return {
3710
3718
  user: undefined,
3711
3719
  email: "",
3712
- mezon_id: "",
3720
+ qr_code: "",
3713
3721
  verify_time: undefined,
3714
3722
  disable_time: undefined,
3715
3723
  logo: "",
@@ -3727,8 +3735,8 @@ export const Account = {
3727
3735
  if (message.email !== "") {
3728
3736
  writer.uint32(18).string(message.email);
3729
3737
  }
3730
- if (message.mezon_id !== "") {
3731
- writer.uint32(26).string(message.mezon_id);
3738
+ if (message.qr_code !== "") {
3739
+ writer.uint32(26).string(message.qr_code);
3732
3740
  }
3733
3741
  if (message.verify_time !== undefined) {
3734
3742
  Timestamp.encode(toTimestamp(message.verify_time), writer.uint32(34).fork()).ldelim();
@@ -3777,7 +3785,7 @@ export const Account = {
3777
3785
  break;
3778
3786
  }
3779
3787
 
3780
- message.mezon_id = reader.string();
3788
+ message.qr_code = reader.string();
3781
3789
  continue;
3782
3790
  case 4:
3783
3791
  if (tag !== 34) {
@@ -3834,7 +3842,7 @@ export const Account = {
3834
3842
  return {
3835
3843
  user: isSet(object.user) ? User.fromJSON(object.user) : undefined,
3836
3844
  email: isSet(object.email) ? globalThis.String(object.email) : "",
3837
- mezon_id: isSet(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
3845
+ qr_code: isSet(object.qr_code) ? globalThis.String(object.qr_code) : "",
3838
3846
  verify_time: isSet(object.verify_time) ? fromJsonTimestamp(object.verify_time) : undefined,
3839
3847
  disable_time: isSet(object.disable_time) ? fromJsonTimestamp(object.disable_time) : undefined,
3840
3848
  logo: isSet(object.logo) ? globalThis.String(object.logo) : "",
@@ -3852,8 +3860,8 @@ export const Account = {
3852
3860
  if (message.email !== "") {
3853
3861
  obj.email = message.email;
3854
3862
  }
3855
- if (message.mezon_id !== "") {
3856
- obj.mezon_id = message.mezon_id;
3863
+ if (message.qr_code !== "") {
3864
+ obj.qr_code = message.qr_code;
3857
3865
  }
3858
3866
  if (message.verify_time !== undefined) {
3859
3867
  obj.verify_time = message.verify_time.toISOString();
@@ -3883,7 +3891,7 @@ export const Account = {
3883
3891
  const message = createBaseAccount();
3884
3892
  message.user = (object.user !== undefined && object.user !== null) ? User.fromPartial(object.user) : undefined;
3885
3893
  message.email = object.email ?? "";
3886
- message.mezon_id = object.mezon_id ?? "";
3894
+ message.qr_code = object.qr_code ?? "";
3887
3895
  message.verify_time = object.verify_time ?? undefined;
3888
3896
  message.disable_time = object.disable_time ?? undefined;
3889
3897
  message.logo = object.logo ?? "";
@@ -4137,6 +4145,82 @@ export const AddFriendsRequest = {
4137
4145
  },
4138
4146
  };
4139
4147
 
4148
+ function createBaseAddFriendsResponse(): AddFriendsResponse {
4149
+ return { ids: [], usernames: [] };
4150
+ }
4151
+
4152
+ export const AddFriendsResponse = {
4153
+ encode(message: AddFriendsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4154
+ for (const v of message.ids) {
4155
+ writer.uint32(10).string(v!);
4156
+ }
4157
+ for (const v of message.usernames) {
4158
+ writer.uint32(18).string(v!);
4159
+ }
4160
+ return writer;
4161
+ },
4162
+
4163
+ decode(input: _m0.Reader | Uint8Array, length?: number): AddFriendsResponse {
4164
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
4165
+ let end = length === undefined ? reader.len : reader.pos + length;
4166
+ const message = createBaseAddFriendsResponse();
4167
+ while (reader.pos < end) {
4168
+ const tag = reader.uint32();
4169
+ switch (tag >>> 3) {
4170
+ case 1:
4171
+ if (tag !== 10) {
4172
+ break;
4173
+ }
4174
+
4175
+ message.ids.push(reader.string());
4176
+ continue;
4177
+ case 2:
4178
+ if (tag !== 18) {
4179
+ break;
4180
+ }
4181
+
4182
+ message.usernames.push(reader.string());
4183
+ continue;
4184
+ }
4185
+ if ((tag & 7) === 4 || tag === 0) {
4186
+ break;
4187
+ }
4188
+ reader.skipType(tag & 7);
4189
+ }
4190
+ return message;
4191
+ },
4192
+
4193
+ fromJSON(object: any): AddFriendsResponse {
4194
+ return {
4195
+ ids: globalThis.Array.isArray(object?.ids) ? object.ids.map((e: any) => globalThis.String(e)) : [],
4196
+ usernames: globalThis.Array.isArray(object?.usernames)
4197
+ ? object.usernames.map((e: any) => globalThis.String(e))
4198
+ : [],
4199
+ };
4200
+ },
4201
+
4202
+ toJSON(message: AddFriendsResponse): unknown {
4203
+ const obj: any = {};
4204
+ if (message.ids?.length) {
4205
+ obj.ids = message.ids;
4206
+ }
4207
+ if (message.usernames?.length) {
4208
+ obj.usernames = message.usernames;
4209
+ }
4210
+ return obj;
4211
+ },
4212
+
4213
+ create<I extends Exact<DeepPartial<AddFriendsResponse>, I>>(base?: I): AddFriendsResponse {
4214
+ return AddFriendsResponse.fromPartial(base ?? ({} as any));
4215
+ },
4216
+ fromPartial<I extends Exact<DeepPartial<AddFriendsResponse>, I>>(object: I): AddFriendsResponse {
4217
+ const message = createBaseAddFriendsResponse();
4218
+ message.ids = object.ids?.map((e) => e) || [];
4219
+ message.usernames = object.usernames?.map((e) => e) || [];
4220
+ return message;
4221
+ },
4222
+ };
4223
+
4140
4224
  function createBaseAddGroupUsersRequest(): AddGroupUsersRequest {
4141
4225
  return { group_id: "", user_ids: [] };
4142
4226
  }
@@ -49,8 +49,8 @@ export interface Account {
49
49
  user: User | undefined;
50
50
  /** The email address of the user. */
51
51
  email: string;
52
- /** The mezon id in the user's account. */
53
- mezon_id: string;
52
+ /** The qr code in the user's account. */
53
+ qr_code: string;
54
54
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's email was verified. */
55
55
  verify_time: Date | undefined;
56
56
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user's account was disabled/banned. */
@@ -84,6 +84,13 @@ export interface AddFriendsRequest {
84
84
  /** The account username of a user. */
85
85
  usernames: string[];
86
86
  }
87
+ /** Add one or more friends to the current user. */
88
+ export interface AddFriendsResponse {
89
+ /** The account id of a user. */
90
+ ids: string[];
91
+ /** The account username of a user. */
92
+ usernames: string[];
93
+ }
87
94
  /** Add users to a group. */
88
95
  export interface AddGroupUsersRequest {
89
96
  /** The group to add users to. */
@@ -3082,7 +3089,7 @@ export declare const Account: {
3082
3089
  status?: string | undefined;
3083
3090
  } | undefined;
3084
3091
  email?: string | undefined;
3085
- mezon_id?: string | undefined;
3092
+ qr_code?: string | undefined;
3086
3093
  verify_time?: Date | undefined;
3087
3094
  disable_time?: Date | undefined;
3088
3095
  logo?: string | undefined;
@@ -3134,7 +3141,7 @@ export declare const Account: {
3134
3141
  status?: string | undefined;
3135
3142
  } & { [K_1 in Exclude<keyof I["user"], keyof User>]: never; }) | undefined;
3136
3143
  email?: string | undefined;
3137
- mezon_id?: string | undefined;
3144
+ qr_code?: string | undefined;
3138
3145
  verify_time?: Date | undefined;
3139
3146
  disable_time?: Date | undefined;
3140
3147
  logo?: string | undefined;
@@ -3166,7 +3173,7 @@ export declare const Account: {
3166
3173
  status?: string | undefined;
3167
3174
  } | undefined;
3168
3175
  email?: string | undefined;
3169
- mezon_id?: string | undefined;
3176
+ qr_code?: string | undefined;
3170
3177
  verify_time?: Date | undefined;
3171
3178
  disable_time?: Date | undefined;
3172
3179
  logo?: string | undefined;
@@ -3218,7 +3225,7 @@ export declare const Account: {
3218
3225
  status?: string | undefined;
3219
3226
  } & { [K_4 in Exclude<keyof I_1["user"], keyof User>]: never; }) | undefined;
3220
3227
  email?: string | undefined;
3221
- mezon_id?: string | undefined;
3228
+ qr_code?: string | undefined;
3222
3229
  verify_time?: Date | undefined;
3223
3230
  disable_time?: Date | undefined;
3224
3231
  logo?: string | undefined;
@@ -3299,6 +3306,26 @@ export declare const AddFriendsRequest: {
3299
3306
  usernames?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["usernames"], keyof string[]>]: never; }) | undefined;
3300
3307
  } & { [K_5 in Exclude<keyof I_1, keyof AddFriendsRequest>]: never; }>(object: I_1): AddFriendsRequest;
3301
3308
  };
3309
+ export declare const AddFriendsResponse: {
3310
+ encode(message: AddFriendsResponse, writer?: _m0.Writer): _m0.Writer;
3311
+ decode(input: _m0.Reader | Uint8Array, length?: number): AddFriendsResponse;
3312
+ fromJSON(object: any): AddFriendsResponse;
3313
+ toJSON(message: AddFriendsResponse): unknown;
3314
+ create<I extends {
3315
+ ids?: string[] | undefined;
3316
+ usernames?: string[] | undefined;
3317
+ } & {
3318
+ ids?: (string[] & string[] & { [K in Exclude<keyof I["ids"], keyof string[]>]: never; }) | undefined;
3319
+ usernames?: (string[] & string[] & { [K_1 in Exclude<keyof I["usernames"], keyof string[]>]: never; }) | undefined;
3320
+ } & { [K_2 in Exclude<keyof I, keyof AddFriendsResponse>]: never; }>(base?: I | undefined): AddFriendsResponse;
3321
+ fromPartial<I_1 extends {
3322
+ ids?: string[] | undefined;
3323
+ usernames?: string[] | undefined;
3324
+ } & {
3325
+ ids?: (string[] & string[] & { [K_3 in Exclude<keyof I_1["ids"], keyof string[]>]: never; }) | undefined;
3326
+ usernames?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["usernames"], keyof string[]>]: never; }) | undefined;
3327
+ } & { [K_5 in Exclude<keyof I_1, keyof AddFriendsResponse>]: never; }>(object: I_1): AddFriendsResponse;
3328
+ };
3302
3329
  export declare const AddGroupUsersRequest: {
3303
3330
  encode(message: AddGroupUsersRequest, writer?: _m0.Writer): _m0.Writer;
3304
3331
  decode(input: _m0.Reader | Uint8Array, length?: number): AddGroupUsersRequest;
@@ -546,6 +546,16 @@ export interface BlockFriend {
546
546
  export interface UnblockFriend {
547
547
  /** */
548
548
  user_id: string;
549
+ /** */
550
+ username: string;
551
+ /** */
552
+ avatar: string;
553
+ /** */
554
+ display_name: string;
555
+ /** */
556
+ status: string;
557
+ /** */
558
+ user_status: string;
549
559
  }
550
560
  /** Application-level heartbeat and connection check. */
551
561
  export interface Ping {
@@ -865,6 +875,8 @@ export interface ChannelUpdatedEvent {
865
875
  user_ids: string[];
866
876
  /** This is the role that needs to be added to the channel */
867
877
  role_ids: string[];
878
+ /** */
879
+ channel_avatar: string;
868
880
  }
869
881
  /** Stop receiving status updates for some set of users. */
870
882
  export interface StatusUnfollow {
@@ -1747,6 +1759,7 @@ export declare const Envelope: {
1747
1759
  count_mess_unread?: number | undefined;
1748
1760
  user_ids?: string[] | undefined;
1749
1761
  role_ids?: string[] | undefined;
1762
+ channel_avatar?: string | undefined;
1750
1763
  } | undefined;
1751
1764
  last_pin_message_event?: {
1752
1765
  clan_id?: string | undefined;
@@ -3284,6 +3297,11 @@ export declare const Envelope: {
3284
3297
  } | undefined;
3285
3298
  un_block_friend?: {
3286
3299
  user_id?: string | undefined;
3300
+ username?: string | undefined;
3301
+ avatar?: string | undefined;
3302
+ display_name?: string | undefined;
3303
+ status?: string | undefined;
3304
+ user_status?: string | undefined;
3287
3305
  } | undefined;
3288
3306
  meet_participant_event?: {
3289
3307
  username?: string | undefined;
@@ -4802,6 +4820,7 @@ export declare const Envelope: {
4802
4820
  count_mess_unread?: number | undefined;
4803
4821
  user_ids?: string[] | undefined;
4804
4822
  role_ids?: string[] | undefined;
4823
+ channel_avatar?: string | undefined;
4805
4824
  } & {
4806
4825
  clan_id?: string | undefined;
4807
4826
  category_id?: string | undefined;
@@ -4822,6 +4841,7 @@ export declare const Envelope: {
4822
4841
  count_mess_unread?: number | undefined;
4823
4842
  user_ids?: (string[] & string[] & { [K_77 in Exclude<keyof I["channel_updated_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
4824
4843
  role_ids?: (string[] & string[] & { [K_78 in Exclude<keyof I["channel_updated_event"]["role_ids"], keyof string[]>]: never; }) | undefined;
4844
+ channel_avatar?: string | undefined;
4825
4845
  } & { [K_79 in Exclude<keyof I["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
4826
4846
  last_pin_message_event?: ({
4827
4847
  clan_id?: string | undefined;
@@ -11204,9 +11224,19 @@ export declare const Envelope: {
11204
11224
  } & { [K_387 in Exclude<keyof I["quick_menu_event"], keyof QuickMenuDataEvent>]: never; }) | undefined;
11205
11225
  un_block_friend?: ({
11206
11226
  user_id?: string | undefined;
11227
+ username?: string | undefined;
11228
+ avatar?: string | undefined;
11229
+ display_name?: string | undefined;
11230
+ status?: string | undefined;
11231
+ user_status?: string | undefined;
11207
11232
  } & {
11208
11233
  user_id?: string | undefined;
11209
- } & { [K_388 in Exclude<keyof I["un_block_friend"], "user_id">]: never; }) | undefined;
11234
+ username?: string | undefined;
11235
+ avatar?: string | undefined;
11236
+ display_name?: string | undefined;
11237
+ status?: string | undefined;
11238
+ user_status?: string | undefined;
11239
+ } & { [K_388 in Exclude<keyof I["un_block_friend"], keyof UnblockFriend>]: never; }) | undefined;
11210
11240
  meet_participant_event?: ({
11211
11241
  username?: string | undefined;
11212
11242
  room_name?: string | undefined;
@@ -11703,6 +11733,7 @@ export declare const Envelope: {
11703
11733
  count_mess_unread?: number | undefined;
11704
11734
  user_ids?: string[] | undefined;
11705
11735
  role_ids?: string[] | undefined;
11736
+ channel_avatar?: string | undefined;
11706
11737
  } | undefined;
11707
11738
  last_pin_message_event?: {
11708
11739
  clan_id?: string | undefined;
@@ -13240,6 +13271,11 @@ export declare const Envelope: {
13240
13271
  } | undefined;
13241
13272
  un_block_friend?: {
13242
13273
  user_id?: string | undefined;
13274
+ username?: string | undefined;
13275
+ avatar?: string | undefined;
13276
+ display_name?: string | undefined;
13277
+ status?: string | undefined;
13278
+ user_status?: string | undefined;
13243
13279
  } | undefined;
13244
13280
  meet_participant_event?: {
13245
13281
  username?: string | undefined;
@@ -14758,6 +14794,7 @@ export declare const Envelope: {
14758
14794
  count_mess_unread?: number | undefined;
14759
14795
  user_ids?: string[] | undefined;
14760
14796
  role_ids?: string[] | undefined;
14797
+ channel_avatar?: string | undefined;
14761
14798
  } & {
14762
14799
  clan_id?: string | undefined;
14763
14800
  category_id?: string | undefined;
@@ -14778,6 +14815,7 @@ export declare const Envelope: {
14778
14815
  count_mess_unread?: number | undefined;
14779
14816
  user_ids?: (string[] & string[] & { [K_470 in Exclude<keyof I_1["channel_updated_event"]["user_ids"], keyof string[]>]: never; }) | undefined;
14780
14817
  role_ids?: (string[] & string[] & { [K_471 in Exclude<keyof I_1["channel_updated_event"]["role_ids"], keyof string[]>]: never; }) | undefined;
14818
+ channel_avatar?: string | undefined;
14781
14819
  } & { [K_472 in Exclude<keyof I_1["channel_updated_event"], keyof ChannelUpdatedEvent>]: never; }) | undefined;
14782
14820
  last_pin_message_event?: ({
14783
14821
  clan_id?: string | undefined;
@@ -21160,9 +21198,19 @@ export declare const Envelope: {
21160
21198
  } & { [K_780 in Exclude<keyof I_1["quick_menu_event"], keyof QuickMenuDataEvent>]: never; }) | undefined;
21161
21199
  un_block_friend?: ({
21162
21200
  user_id?: string | undefined;
21201
+ username?: string | undefined;
21202
+ avatar?: string | undefined;
21203
+ display_name?: string | undefined;
21204
+ status?: string | undefined;
21205
+ user_status?: string | undefined;
21163
21206
  } & {
21164
21207
  user_id?: string | undefined;
21165
- } & { [K_781 in Exclude<keyof I_1["un_block_friend"], "user_id">]: never; }) | undefined;
21208
+ username?: string | undefined;
21209
+ avatar?: string | undefined;
21210
+ display_name?: string | undefined;
21211
+ status?: string | undefined;
21212
+ user_status?: string | undefined;
21213
+ } & { [K_781 in Exclude<keyof I_1["un_block_friend"], keyof UnblockFriend>]: never; }) | undefined;
21166
21214
  meet_participant_event?: ({
21167
21215
  username?: string | undefined;
21168
21216
  room_name?: string | undefined;
@@ -24759,14 +24807,34 @@ export declare const UnblockFriend: {
24759
24807
  toJSON(message: UnblockFriend): unknown;
24760
24808
  create<I extends {
24761
24809
  user_id?: string | undefined;
24810
+ username?: string | undefined;
24811
+ avatar?: string | undefined;
24812
+ display_name?: string | undefined;
24813
+ status?: string | undefined;
24814
+ user_status?: string | undefined;
24762
24815
  } & {
24763
24816
  user_id?: string | undefined;
24764
- } & { [K in Exclude<keyof I, "user_id">]: never; }>(base?: I | undefined): UnblockFriend;
24817
+ username?: string | undefined;
24818
+ avatar?: string | undefined;
24819
+ display_name?: string | undefined;
24820
+ status?: string | undefined;
24821
+ user_status?: string | undefined;
24822
+ } & { [K in Exclude<keyof I, keyof UnblockFriend>]: never; }>(base?: I | undefined): UnblockFriend;
24765
24823
  fromPartial<I_1 extends {
24766
24824
  user_id?: string | undefined;
24825
+ username?: string | undefined;
24826
+ avatar?: string | undefined;
24827
+ display_name?: string | undefined;
24828
+ status?: string | undefined;
24829
+ user_status?: string | undefined;
24767
24830
  } & {
24768
24831
  user_id?: string | undefined;
24769
- } & { [K_1 in Exclude<keyof I_1, "user_id">]: never; }>(object: I_1): UnblockFriend;
24832
+ username?: string | undefined;
24833
+ avatar?: string | undefined;
24834
+ display_name?: string | undefined;
24835
+ status?: string | undefined;
24836
+ user_status?: string | undefined;
24837
+ } & { [K_1 in Exclude<keyof I_1, keyof UnblockFriend>]: never; }>(object: I_1): UnblockFriend;
24770
24838
  };
24771
24839
  export declare const Ping: {
24772
24840
  encode(_: Ping, writer?: _m0.Writer): _m0.Writer;
@@ -26137,6 +26205,7 @@ export declare const ChannelUpdatedEvent: {
26137
26205
  count_mess_unread?: number | undefined;
26138
26206
  user_ids?: string[] | undefined;
26139
26207
  role_ids?: string[] | undefined;
26208
+ channel_avatar?: string | undefined;
26140
26209
  } & {
26141
26210
  clan_id?: string | undefined;
26142
26211
  category_id?: string | undefined;
@@ -26157,6 +26226,7 @@ export declare const ChannelUpdatedEvent: {
26157
26226
  count_mess_unread?: number | undefined;
26158
26227
  user_ids?: (string[] & string[] & { [K in Exclude<keyof I["user_ids"], keyof string[]>]: never; }) | undefined;
26159
26228
  role_ids?: (string[] & string[] & { [K_1 in Exclude<keyof I["role_ids"], keyof string[]>]: never; }) | undefined;
26229
+ channel_avatar?: string | undefined;
26160
26230
  } & { [K_2 in Exclude<keyof I, keyof ChannelUpdatedEvent>]: never; }>(base?: I | undefined): ChannelUpdatedEvent;
26161
26231
  fromPartial<I_1 extends {
26162
26232
  clan_id?: string | undefined;
@@ -26178,6 +26248,7 @@ export declare const ChannelUpdatedEvent: {
26178
26248
  count_mess_unread?: number | undefined;
26179
26249
  user_ids?: string[] | undefined;
26180
26250
  role_ids?: string[] | undefined;
26251
+ channel_avatar?: string | undefined;
26181
26252
  } & {
26182
26253
  clan_id?: string | undefined;
26183
26254
  category_id?: string | undefined;
@@ -26198,6 +26269,7 @@ export declare const ChannelUpdatedEvent: {
26198
26269
  count_mess_unread?: number | undefined;
26199
26270
  user_ids?: (string[] & string[] & { [K_3 in Exclude<keyof I_1["user_ids"], keyof string[]>]: never; }) | undefined;
26200
26271
  role_ids?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["role_ids"], keyof string[]>]: never; }) | undefined;
26272
+ channel_avatar?: string | undefined;
26201
26273
  } & { [K_5 in Exclude<keyof I_1, keyof ChannelUpdatedEvent>]: never; }>(object: I_1): ChannelUpdatedEvent;
26202
26274
  };
26203
26275
  export declare const StatusUnfollow: {
@@ -18367,13 +18367,28 @@ var BlockFriend = {
18367
18367
  }
18368
18368
  };
18369
18369
  function createBaseUnblockFriend() {
18370
- return { user_id: "" };
18370
+ return { user_id: "", username: "", avatar: "", display_name: "", status: "", user_status: "" };
18371
18371
  }
18372
18372
  var UnblockFriend = {
18373
18373
  encode(message, writer = import_minimal5.default.Writer.create()) {
18374
18374
  if (message.user_id !== "") {
18375
18375
  writer.uint32(10).string(message.user_id);
18376
18376
  }
18377
+ if (message.username !== "") {
18378
+ writer.uint32(18).string(message.username);
18379
+ }
18380
+ if (message.avatar !== "") {
18381
+ writer.uint32(26).string(message.avatar);
18382
+ }
18383
+ if (message.display_name !== "") {
18384
+ writer.uint32(34).string(message.display_name);
18385
+ }
18386
+ if (message.status !== "") {
18387
+ writer.uint32(42).string(message.status);
18388
+ }
18389
+ if (message.user_status !== "") {
18390
+ writer.uint32(50).string(message.user_status);
18391
+ }
18377
18392
  return writer;
18378
18393
  },
18379
18394
  decode(input, length) {
@@ -18389,6 +18404,36 @@ var UnblockFriend = {
18389
18404
  }
18390
18405
  message.user_id = reader.string();
18391
18406
  continue;
18407
+ case 2:
18408
+ if (tag !== 18) {
18409
+ break;
18410
+ }
18411
+ message.username = reader.string();
18412
+ continue;
18413
+ case 3:
18414
+ if (tag !== 26) {
18415
+ break;
18416
+ }
18417
+ message.avatar = reader.string();
18418
+ continue;
18419
+ case 4:
18420
+ if (tag !== 34) {
18421
+ break;
18422
+ }
18423
+ message.display_name = reader.string();
18424
+ continue;
18425
+ case 5:
18426
+ if (tag !== 42) {
18427
+ break;
18428
+ }
18429
+ message.status = reader.string();
18430
+ continue;
18431
+ case 6:
18432
+ if (tag !== 50) {
18433
+ break;
18434
+ }
18435
+ message.user_status = reader.string();
18436
+ continue;
18392
18437
  }
18393
18438
  if ((tag & 7) === 4 || tag === 0) {
18394
18439
  break;
@@ -18398,22 +18443,49 @@ var UnblockFriend = {
18398
18443
  return message;
18399
18444
  },
18400
18445
  fromJSON(object) {
18401
- return { user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "" };
18446
+ return {
18447
+ user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
18448
+ username: isSet4(object.username) ? globalThis.String(object.username) : "",
18449
+ avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : "",
18450
+ display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
18451
+ status: isSet4(object.status) ? globalThis.String(object.status) : "",
18452
+ user_status: isSet4(object.user_status) ? globalThis.String(object.user_status) : ""
18453
+ };
18402
18454
  },
18403
18455
  toJSON(message) {
18404
18456
  const obj = {};
18405
18457
  if (message.user_id !== "") {
18406
18458
  obj.user_id = message.user_id;
18407
18459
  }
18460
+ if (message.username !== "") {
18461
+ obj.username = message.username;
18462
+ }
18463
+ if (message.avatar !== "") {
18464
+ obj.avatar = message.avatar;
18465
+ }
18466
+ if (message.display_name !== "") {
18467
+ obj.display_name = message.display_name;
18468
+ }
18469
+ if (message.status !== "") {
18470
+ obj.status = message.status;
18471
+ }
18472
+ if (message.user_status !== "") {
18473
+ obj.user_status = message.user_status;
18474
+ }
18408
18475
  return obj;
18409
18476
  },
18410
18477
  create(base) {
18411
18478
  return UnblockFriend.fromPartial(base != null ? base : {});
18412
18479
  },
18413
18480
  fromPartial(object) {
18414
- var _a;
18481
+ var _a, _b, _c, _d, _e, _f;
18415
18482
  const message = createBaseUnblockFriend();
18416
18483
  message.user_id = (_a = object.user_id) != null ? _a : "";
18484
+ message.username = (_b = object.username) != null ? _b : "";
18485
+ message.avatar = (_c = object.avatar) != null ? _c : "";
18486
+ message.display_name = (_d = object.display_name) != null ? _d : "";
18487
+ message.status = (_e = object.status) != null ? _e : "";
18488
+ message.user_status = (_f = object.user_status) != null ? _f : "";
18417
18489
  return message;
18418
18490
  }
18419
18491
  };
@@ -20997,7 +21069,8 @@ function createBaseChannelUpdatedEvent() {
20997
21069
  active: 0,
20998
21070
  count_mess_unread: 0,
20999
21071
  user_ids: [],
21000
- role_ids: []
21072
+ role_ids: [],
21073
+ channel_avatar: ""
21001
21074
  };
21002
21075
  }
21003
21076
  var ChannelUpdatedEvent = {
@@ -21059,6 +21132,9 @@ var ChannelUpdatedEvent = {
21059
21132
  for (const v of message.role_ids) {
21060
21133
  writer.uint32(154).string(v);
21061
21134
  }
21135
+ if (message.channel_avatar !== "") {
21136
+ writer.uint32(162).string(message.channel_avatar);
21137
+ }
21062
21138
  return writer;
21063
21139
  },
21064
21140
  decode(input, length) {
@@ -21182,6 +21258,12 @@ var ChannelUpdatedEvent = {
21182
21258
  }
21183
21259
  message.role_ids.push(reader.string());
21184
21260
  continue;
21261
+ case 20:
21262
+ if (tag !== 162) {
21263
+ break;
21264
+ }
21265
+ message.channel_avatar = reader.string();
21266
+ continue;
21185
21267
  }
21186
21268
  if ((tag & 7) === 4 || tag === 0) {
21187
21269
  break;
@@ -21210,7 +21292,8 @@ var ChannelUpdatedEvent = {
21210
21292
  active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
21211
21293
  count_mess_unread: isSet4(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
21212
21294
  user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
21213
- role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : []
21295
+ role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : [],
21296
+ channel_avatar: isSet4(object.channel_avatar) ? globalThis.String(object.channel_avatar) : ""
21214
21297
  };
21215
21298
  },
21216
21299
  toJSON(message) {
@@ -21273,13 +21356,16 @@ var ChannelUpdatedEvent = {
21273
21356
  if ((_b = message.role_ids) == null ? void 0 : _b.length) {
21274
21357
  obj.role_ids = message.role_ids;
21275
21358
  }
21359
+ if (message.channel_avatar !== "") {
21360
+ obj.channel_avatar = message.channel_avatar;
21361
+ }
21276
21362
  return obj;
21277
21363
  },
21278
21364
  create(base) {
21279
21365
  return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
21280
21366
  },
21281
21367
  fromPartial(object) {
21282
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
21368
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
21283
21369
  const message = createBaseChannelUpdatedEvent();
21284
21370
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
21285
21371
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -21300,6 +21386,7 @@ var ChannelUpdatedEvent = {
21300
21386
  message.count_mess_unread = (_q = object.count_mess_unread) != null ? _q : 0;
21301
21387
  message.user_ids = ((_r = object.user_ids) == null ? void 0 : _r.map((e) => e)) || [];
21302
21388
  message.role_ids = ((_s = object.role_ids) == null ? void 0 : _s.map((e) => e)) || [];
21389
+ message.channel_avatar = (_t = object.channel_avatar) != null ? _t : "";
21303
21390
  return message;
21304
21391
  }
21305
21392
  };
@@ -18354,13 +18354,28 @@ var BlockFriend = {
18354
18354
  }
18355
18355
  };
18356
18356
  function createBaseUnblockFriend() {
18357
- return { user_id: "" };
18357
+ return { user_id: "", username: "", avatar: "", display_name: "", status: "", user_status: "" };
18358
18358
  }
18359
18359
  var UnblockFriend = {
18360
18360
  encode(message, writer = import_minimal5.default.Writer.create()) {
18361
18361
  if (message.user_id !== "") {
18362
18362
  writer.uint32(10).string(message.user_id);
18363
18363
  }
18364
+ if (message.username !== "") {
18365
+ writer.uint32(18).string(message.username);
18366
+ }
18367
+ if (message.avatar !== "") {
18368
+ writer.uint32(26).string(message.avatar);
18369
+ }
18370
+ if (message.display_name !== "") {
18371
+ writer.uint32(34).string(message.display_name);
18372
+ }
18373
+ if (message.status !== "") {
18374
+ writer.uint32(42).string(message.status);
18375
+ }
18376
+ if (message.user_status !== "") {
18377
+ writer.uint32(50).string(message.user_status);
18378
+ }
18364
18379
  return writer;
18365
18380
  },
18366
18381
  decode(input, length) {
@@ -18376,6 +18391,36 @@ var UnblockFriend = {
18376
18391
  }
18377
18392
  message.user_id = reader.string();
18378
18393
  continue;
18394
+ case 2:
18395
+ if (tag !== 18) {
18396
+ break;
18397
+ }
18398
+ message.username = reader.string();
18399
+ continue;
18400
+ case 3:
18401
+ if (tag !== 26) {
18402
+ break;
18403
+ }
18404
+ message.avatar = reader.string();
18405
+ continue;
18406
+ case 4:
18407
+ if (tag !== 34) {
18408
+ break;
18409
+ }
18410
+ message.display_name = reader.string();
18411
+ continue;
18412
+ case 5:
18413
+ if (tag !== 42) {
18414
+ break;
18415
+ }
18416
+ message.status = reader.string();
18417
+ continue;
18418
+ case 6:
18419
+ if (tag !== 50) {
18420
+ break;
18421
+ }
18422
+ message.user_status = reader.string();
18423
+ continue;
18379
18424
  }
18380
18425
  if ((tag & 7) === 4 || tag === 0) {
18381
18426
  break;
@@ -18385,22 +18430,49 @@ var UnblockFriend = {
18385
18430
  return message;
18386
18431
  },
18387
18432
  fromJSON(object) {
18388
- return { user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "" };
18433
+ return {
18434
+ user_id: isSet4(object.user_id) ? globalThis.String(object.user_id) : "",
18435
+ username: isSet4(object.username) ? globalThis.String(object.username) : "",
18436
+ avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : "",
18437
+ display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
18438
+ status: isSet4(object.status) ? globalThis.String(object.status) : "",
18439
+ user_status: isSet4(object.user_status) ? globalThis.String(object.user_status) : ""
18440
+ };
18389
18441
  },
18390
18442
  toJSON(message) {
18391
18443
  const obj = {};
18392
18444
  if (message.user_id !== "") {
18393
18445
  obj.user_id = message.user_id;
18394
18446
  }
18447
+ if (message.username !== "") {
18448
+ obj.username = message.username;
18449
+ }
18450
+ if (message.avatar !== "") {
18451
+ obj.avatar = message.avatar;
18452
+ }
18453
+ if (message.display_name !== "") {
18454
+ obj.display_name = message.display_name;
18455
+ }
18456
+ if (message.status !== "") {
18457
+ obj.status = message.status;
18458
+ }
18459
+ if (message.user_status !== "") {
18460
+ obj.user_status = message.user_status;
18461
+ }
18395
18462
  return obj;
18396
18463
  },
18397
18464
  create(base) {
18398
18465
  return UnblockFriend.fromPartial(base != null ? base : {});
18399
18466
  },
18400
18467
  fromPartial(object) {
18401
- var _a;
18468
+ var _a, _b, _c, _d, _e, _f;
18402
18469
  const message = createBaseUnblockFriend();
18403
18470
  message.user_id = (_a = object.user_id) != null ? _a : "";
18471
+ message.username = (_b = object.username) != null ? _b : "";
18472
+ message.avatar = (_c = object.avatar) != null ? _c : "";
18473
+ message.display_name = (_d = object.display_name) != null ? _d : "";
18474
+ message.status = (_e = object.status) != null ? _e : "";
18475
+ message.user_status = (_f = object.user_status) != null ? _f : "";
18404
18476
  return message;
18405
18477
  }
18406
18478
  };
@@ -20984,7 +21056,8 @@ function createBaseChannelUpdatedEvent() {
20984
21056
  active: 0,
20985
21057
  count_mess_unread: 0,
20986
21058
  user_ids: [],
20987
- role_ids: []
21059
+ role_ids: [],
21060
+ channel_avatar: ""
20988
21061
  };
20989
21062
  }
20990
21063
  var ChannelUpdatedEvent = {
@@ -21046,6 +21119,9 @@ var ChannelUpdatedEvent = {
21046
21119
  for (const v of message.role_ids) {
21047
21120
  writer.uint32(154).string(v);
21048
21121
  }
21122
+ if (message.channel_avatar !== "") {
21123
+ writer.uint32(162).string(message.channel_avatar);
21124
+ }
21049
21125
  return writer;
21050
21126
  },
21051
21127
  decode(input, length) {
@@ -21169,6 +21245,12 @@ var ChannelUpdatedEvent = {
21169
21245
  }
21170
21246
  message.role_ids.push(reader.string());
21171
21247
  continue;
21248
+ case 20:
21249
+ if (tag !== 162) {
21250
+ break;
21251
+ }
21252
+ message.channel_avatar = reader.string();
21253
+ continue;
21172
21254
  }
21173
21255
  if ((tag & 7) === 4 || tag === 0) {
21174
21256
  break;
@@ -21197,7 +21279,8 @@ var ChannelUpdatedEvent = {
21197
21279
  active: isSet4(object.active) ? globalThis.Number(object.active) : 0,
21198
21280
  count_mess_unread: isSet4(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
21199
21281
  user_ids: globalThis.Array.isArray(object == null ? void 0 : object.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
21200
- role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : []
21282
+ role_ids: globalThis.Array.isArray(object == null ? void 0 : object.role_ids) ? object.role_ids.map((e) => globalThis.String(e)) : [],
21283
+ channel_avatar: isSet4(object.channel_avatar) ? globalThis.String(object.channel_avatar) : ""
21201
21284
  };
21202
21285
  },
21203
21286
  toJSON(message) {
@@ -21260,13 +21343,16 @@ var ChannelUpdatedEvent = {
21260
21343
  if ((_b = message.role_ids) == null ? void 0 : _b.length) {
21261
21344
  obj.role_ids = message.role_ids;
21262
21345
  }
21346
+ if (message.channel_avatar !== "") {
21347
+ obj.channel_avatar = message.channel_avatar;
21348
+ }
21263
21349
  return obj;
21264
21350
  },
21265
21351
  create(base) {
21266
21352
  return ChannelUpdatedEvent.fromPartial(base != null ? base : {});
21267
21353
  },
21268
21354
  fromPartial(object) {
21269
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
21355
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
21270
21356
  const message = createBaseChannelUpdatedEvent();
21271
21357
  message.clan_id = (_a = object.clan_id) != null ? _a : "";
21272
21358
  message.category_id = (_b = object.category_id) != null ? _b : "";
@@ -21287,6 +21373,7 @@ var ChannelUpdatedEvent = {
21287
21373
  message.count_mess_unread = (_q = object.count_mess_unread) != null ? _q : 0;
21288
21374
  message.user_ids = ((_r = object.user_ids) == null ? void 0 : _r.map((e) => e)) || [];
21289
21375
  message.role_ids = ((_s = object.role_ids) == null ? void 0 : _s.map((e) => e)) || [];
21376
+ message.channel_avatar = (_t = object.channel_avatar) != null ? _t : "";
21290
21377
  return message;
21291
21378
  }
21292
21379
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.45",
3
+ "version": "1.8.47",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",
package/rtapi/realtime.ts CHANGED
@@ -908,6 +908,16 @@ export interface BlockFriend {
908
908
  export interface UnblockFriend {
909
909
  /** */
910
910
  user_id: string;
911
+ /** */
912
+ username: string;
913
+ /** */
914
+ avatar: string;
915
+ /** */
916
+ display_name: string;
917
+ /** */
918
+ status: string;
919
+ /** */
920
+ user_status: string;
911
921
  }
912
922
 
913
923
  /** Application-level heartbeat and connection check. */
@@ -1256,6 +1266,8 @@ export interface ChannelUpdatedEvent {
1256
1266
  user_ids: string[];
1257
1267
  /** This is the role that needs to be added to the channel */
1258
1268
  role_ids: string[];
1269
+ /** */
1270
+ channel_avatar: string;
1259
1271
  }
1260
1272
 
1261
1273
  /** Stop receiving status updates for some set of users. */
@@ -7064,7 +7076,7 @@ export const BlockFriend = {
7064
7076
  };
7065
7077
 
7066
7078
  function createBaseUnblockFriend(): UnblockFriend {
7067
- return { user_id: "" };
7079
+ return { user_id: "", username: "", avatar: "", display_name: "", status: "", user_status: "" };
7068
7080
  }
7069
7081
 
7070
7082
  export const UnblockFriend = {
@@ -7072,6 +7084,21 @@ export const UnblockFriend = {
7072
7084
  if (message.user_id !== "") {
7073
7085
  writer.uint32(10).string(message.user_id);
7074
7086
  }
7087
+ if (message.username !== "") {
7088
+ writer.uint32(18).string(message.username);
7089
+ }
7090
+ if (message.avatar !== "") {
7091
+ writer.uint32(26).string(message.avatar);
7092
+ }
7093
+ if (message.display_name !== "") {
7094
+ writer.uint32(34).string(message.display_name);
7095
+ }
7096
+ if (message.status !== "") {
7097
+ writer.uint32(42).string(message.status);
7098
+ }
7099
+ if (message.user_status !== "") {
7100
+ writer.uint32(50).string(message.user_status);
7101
+ }
7075
7102
  return writer;
7076
7103
  },
7077
7104
 
@@ -7089,6 +7116,41 @@ export const UnblockFriend = {
7089
7116
 
7090
7117
  message.user_id = reader.string();
7091
7118
  continue;
7119
+ case 2:
7120
+ if (tag !== 18) {
7121
+ break;
7122
+ }
7123
+
7124
+ message.username = reader.string();
7125
+ continue;
7126
+ case 3:
7127
+ if (tag !== 26) {
7128
+ break;
7129
+ }
7130
+
7131
+ message.avatar = reader.string();
7132
+ continue;
7133
+ case 4:
7134
+ if (tag !== 34) {
7135
+ break;
7136
+ }
7137
+
7138
+ message.display_name = reader.string();
7139
+ continue;
7140
+ case 5:
7141
+ if (tag !== 42) {
7142
+ break;
7143
+ }
7144
+
7145
+ message.status = reader.string();
7146
+ continue;
7147
+ case 6:
7148
+ if (tag !== 50) {
7149
+ break;
7150
+ }
7151
+
7152
+ message.user_status = reader.string();
7153
+ continue;
7092
7154
  }
7093
7155
  if ((tag & 7) === 4 || tag === 0) {
7094
7156
  break;
@@ -7099,7 +7161,14 @@ export const UnblockFriend = {
7099
7161
  },
7100
7162
 
7101
7163
  fromJSON(object: any): UnblockFriend {
7102
- return { user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "" };
7164
+ return {
7165
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
7166
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
7167
+ avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
7168
+ display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
7169
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
7170
+ user_status: isSet(object.user_status) ? globalThis.String(object.user_status) : "",
7171
+ };
7103
7172
  },
7104
7173
 
7105
7174
  toJSON(message: UnblockFriend): unknown {
@@ -7107,6 +7176,21 @@ export const UnblockFriend = {
7107
7176
  if (message.user_id !== "") {
7108
7177
  obj.user_id = message.user_id;
7109
7178
  }
7179
+ if (message.username !== "") {
7180
+ obj.username = message.username;
7181
+ }
7182
+ if (message.avatar !== "") {
7183
+ obj.avatar = message.avatar;
7184
+ }
7185
+ if (message.display_name !== "") {
7186
+ obj.display_name = message.display_name;
7187
+ }
7188
+ if (message.status !== "") {
7189
+ obj.status = message.status;
7190
+ }
7191
+ if (message.user_status !== "") {
7192
+ obj.user_status = message.user_status;
7193
+ }
7110
7194
  return obj;
7111
7195
  },
7112
7196
 
@@ -7116,6 +7200,11 @@ export const UnblockFriend = {
7116
7200
  fromPartial<I extends Exact<DeepPartial<UnblockFriend>, I>>(object: I): UnblockFriend {
7117
7201
  const message = createBaseUnblockFriend();
7118
7202
  message.user_id = object.user_id ?? "";
7203
+ message.username = object.username ?? "";
7204
+ message.avatar = object.avatar ?? "";
7205
+ message.display_name = object.display_name ?? "";
7206
+ message.status = object.status ?? "";
7207
+ message.user_status = object.user_status ?? "";
7119
7208
  return message;
7120
7209
  },
7121
7210
  };
@@ -9946,6 +10035,7 @@ function createBaseChannelUpdatedEvent(): ChannelUpdatedEvent {
9946
10035
  count_mess_unread: 0,
9947
10036
  user_ids: [],
9948
10037
  role_ids: [],
10038
+ channel_avatar: "",
9949
10039
  };
9950
10040
  }
9951
10041
 
@@ -10008,6 +10098,9 @@ export const ChannelUpdatedEvent = {
10008
10098
  for (const v of message.role_ids) {
10009
10099
  writer.uint32(154).string(v!);
10010
10100
  }
10101
+ if (message.channel_avatar !== "") {
10102
+ writer.uint32(162).string(message.channel_avatar);
10103
+ }
10011
10104
  return writer;
10012
10105
  },
10013
10106
 
@@ -10151,6 +10244,13 @@ export const ChannelUpdatedEvent = {
10151
10244
 
10152
10245
  message.role_ids.push(reader.string());
10153
10246
  continue;
10247
+ case 20:
10248
+ if (tag !== 162) {
10249
+ break;
10250
+ }
10251
+
10252
+ message.channel_avatar = reader.string();
10253
+ continue;
10154
10254
  }
10155
10255
  if ((tag & 7) === 4 || tag === 0) {
10156
10256
  break;
@@ -10181,6 +10281,7 @@ export const ChannelUpdatedEvent = {
10181
10281
  count_mess_unread: isSet(object.count_mess_unread) ? globalThis.Number(object.count_mess_unread) : 0,
10182
10282
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
10183
10283
  role_ids: globalThis.Array.isArray(object?.role_ids) ? object.role_ids.map((e: any) => globalThis.String(e)) : [],
10284
+ channel_avatar: isSet(object.channel_avatar) ? globalThis.String(object.channel_avatar) : "",
10184
10285
  };
10185
10286
  },
10186
10287
 
@@ -10243,6 +10344,9 @@ export const ChannelUpdatedEvent = {
10243
10344
  if (message.role_ids?.length) {
10244
10345
  obj.role_ids = message.role_ids;
10245
10346
  }
10347
+ if (message.channel_avatar !== "") {
10348
+ obj.channel_avatar = message.channel_avatar;
10349
+ }
10246
10350
  return obj;
10247
10351
  },
10248
10352
 
@@ -10270,6 +10374,7 @@ export const ChannelUpdatedEvent = {
10270
10374
  message.count_mess_unread = object.count_mess_unread ?? 0;
10271
10375
  message.user_ids = object.user_ids?.map((e) => e) || [];
10272
10376
  message.role_ids = object.role_ids?.map((e) => e) || [];
10377
+ message.channel_avatar = object.channel_avatar ?? "";
10273
10378
  return message;
10274
10379
  },
10275
10380
  };