mezon-js-protobuf 1.8.22 → 1.8.23

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
@@ -762,6 +762,8 @@ export interface ChannelUserList_ChannelUser {
762
762
  clan_avatar: string;
763
763
  /** clan Id */
764
764
  clan_id: string;
765
+ /** added by */
766
+ added_by: string;
765
767
  }
766
768
 
767
769
  /** A list of users belonging to a channel, along with their role. */
@@ -3833,20 +3835,6 @@ export interface ForSaleItemList {
3833
3835
  for_sale_items: ForSaleItem[];
3834
3836
  }
3835
3837
 
3836
- export interface ListChannelMemberRequest {
3837
- channel_id: string;
3838
- clan_id: string;
3839
- }
3840
-
3841
- export interface ChannelMemberDetail {
3842
- member_id: string;
3843
- added_by: string;
3844
- }
3845
-
3846
- export interface ChannelMemberList {
3847
- channel_members: ChannelMemberDetail[];
3848
- }
3849
-
3850
3838
  function createBaseAccount(): Account {
3851
3839
  return {
3852
3840
  user: undefined,
@@ -7943,7 +7931,7 @@ export const ChannelUserList = {
7943
7931
  };
7944
7932
 
7945
7933
  function createBaseChannelUserList_ChannelUser(): ChannelUserList_ChannelUser {
7946
- return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "" };
7934
+ return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "", added_by: "" };
7947
7935
  }
7948
7936
 
7949
7937
  export const ChannelUserList_ChannelUser = {
@@ -7969,6 +7957,9 @@ export const ChannelUserList_ChannelUser = {
7969
7957
  if (message.clan_id !== "") {
7970
7958
  writer.uint32(58).string(message.clan_id);
7971
7959
  }
7960
+ if (message.added_by !== "") {
7961
+ writer.uint32(66).string(message.added_by);
7962
+ }
7972
7963
  return writer;
7973
7964
  },
7974
7965
 
@@ -8028,6 +8019,13 @@ export const ChannelUserList_ChannelUser = {
8028
8019
 
8029
8020
  message.clan_id = reader.string();
8030
8021
  continue;
8022
+ case 8:
8023
+ if (tag !== 66) {
8024
+ break;
8025
+ }
8026
+
8027
+ message.added_by = reader.string();
8028
+ continue;
8031
8029
  }
8032
8030
  if ((tag & 7) === 4 || tag === 0) {
8033
8031
  break;
@@ -8046,6 +8044,7 @@ export const ChannelUserList_ChannelUser = {
8046
8044
  clan_nick: isSet(object.clan_nick) ? globalThis.String(object.clan_nick) : "",
8047
8045
  clan_avatar: isSet(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
8048
8046
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
8047
+ added_by: isSet(object.added_by) ? globalThis.String(object.added_by) : "",
8049
8048
  };
8050
8049
  },
8051
8050
 
@@ -8072,6 +8071,9 @@ export const ChannelUserList_ChannelUser = {
8072
8071
  if (message.clan_id !== "") {
8073
8072
  obj.clan_id = message.clan_id;
8074
8073
  }
8074
+ if (message.added_by !== "") {
8075
+ obj.added_by = message.added_by;
8076
+ }
8075
8077
  return obj;
8076
8078
  },
8077
8079
 
@@ -8087,6 +8089,7 @@ export const ChannelUserList_ChannelUser = {
8087
8089
  message.clan_nick = object.clan_nick ?? "";
8088
8090
  message.clan_avatar = object.clan_avatar ?? "";
8089
8091
  message.clan_id = object.clan_id ?? "";
8092
+ message.added_by = object.added_by ?? "";
8090
8093
  return message;
8091
8094
  },
8092
8095
  };
@@ -38329,215 +38332,6 @@ export const ForSaleItemList = {
38329
38332
  },
38330
38333
  };
38331
38334
 
38332
- function createBaseListChannelMemberRequest(): ListChannelMemberRequest {
38333
- return { channel_id: "", clan_id: "" };
38334
- }
38335
-
38336
- export const ListChannelMemberRequest = {
38337
- encode(message: ListChannelMemberRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38338
- if (message.channel_id !== "") {
38339
- writer.uint32(10).string(message.channel_id);
38340
- }
38341
- if (message.clan_id !== "") {
38342
- writer.uint32(18).string(message.clan_id);
38343
- }
38344
- return writer;
38345
- },
38346
-
38347
- decode(input: _m0.Reader | Uint8Array, length?: number): ListChannelMemberRequest {
38348
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38349
- let end = length === undefined ? reader.len : reader.pos + length;
38350
- const message = createBaseListChannelMemberRequest();
38351
- while (reader.pos < end) {
38352
- const tag = reader.uint32();
38353
- switch (tag >>> 3) {
38354
- case 1:
38355
- if (tag !== 10) {
38356
- break;
38357
- }
38358
-
38359
- message.channel_id = reader.string();
38360
- continue;
38361
- case 2:
38362
- if (tag !== 18) {
38363
- break;
38364
- }
38365
-
38366
- message.clan_id = reader.string();
38367
- continue;
38368
- }
38369
- if ((tag & 7) === 4 || tag === 0) {
38370
- break;
38371
- }
38372
- reader.skipType(tag & 7);
38373
- }
38374
- return message;
38375
- },
38376
-
38377
- fromJSON(object: any): ListChannelMemberRequest {
38378
- return {
38379
- channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
38380
- clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
38381
- };
38382
- },
38383
-
38384
- toJSON(message: ListChannelMemberRequest): unknown {
38385
- const obj: any = {};
38386
- if (message.channel_id !== "") {
38387
- obj.channel_id = message.channel_id;
38388
- }
38389
- if (message.clan_id !== "") {
38390
- obj.clan_id = message.clan_id;
38391
- }
38392
- return obj;
38393
- },
38394
-
38395
- create<I extends Exact<DeepPartial<ListChannelMemberRequest>, I>>(base?: I): ListChannelMemberRequest {
38396
- return ListChannelMemberRequest.fromPartial(base ?? ({} as any));
38397
- },
38398
- fromPartial<I extends Exact<DeepPartial<ListChannelMemberRequest>, I>>(object: I): ListChannelMemberRequest {
38399
- const message = createBaseListChannelMemberRequest();
38400
- message.channel_id = object.channel_id ?? "";
38401
- message.clan_id = object.clan_id ?? "";
38402
- return message;
38403
- },
38404
- };
38405
-
38406
- function createBaseChannelMemberDetail(): ChannelMemberDetail {
38407
- return { member_id: "", added_by: "" };
38408
- }
38409
-
38410
- export const ChannelMemberDetail = {
38411
- encode(message: ChannelMemberDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38412
- if (message.member_id !== "") {
38413
- writer.uint32(10).string(message.member_id);
38414
- }
38415
- if (message.added_by !== "") {
38416
- writer.uint32(18).string(message.added_by);
38417
- }
38418
- return writer;
38419
- },
38420
-
38421
- decode(input: _m0.Reader | Uint8Array, length?: number): ChannelMemberDetail {
38422
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38423
- let end = length === undefined ? reader.len : reader.pos + length;
38424
- const message = createBaseChannelMemberDetail();
38425
- while (reader.pos < end) {
38426
- const tag = reader.uint32();
38427
- switch (tag >>> 3) {
38428
- case 1:
38429
- if (tag !== 10) {
38430
- break;
38431
- }
38432
-
38433
- message.member_id = reader.string();
38434
- continue;
38435
- case 2:
38436
- if (tag !== 18) {
38437
- break;
38438
- }
38439
-
38440
- message.added_by = reader.string();
38441
- continue;
38442
- }
38443
- if ((tag & 7) === 4 || tag === 0) {
38444
- break;
38445
- }
38446
- reader.skipType(tag & 7);
38447
- }
38448
- return message;
38449
- },
38450
-
38451
- fromJSON(object: any): ChannelMemberDetail {
38452
- return {
38453
- member_id: isSet(object.member_id) ? globalThis.String(object.member_id) : "",
38454
- added_by: isSet(object.added_by) ? globalThis.String(object.added_by) : "",
38455
- };
38456
- },
38457
-
38458
- toJSON(message: ChannelMemberDetail): unknown {
38459
- const obj: any = {};
38460
- if (message.member_id !== "") {
38461
- obj.member_id = message.member_id;
38462
- }
38463
- if (message.added_by !== "") {
38464
- obj.added_by = message.added_by;
38465
- }
38466
- return obj;
38467
- },
38468
-
38469
- create<I extends Exact<DeepPartial<ChannelMemberDetail>, I>>(base?: I): ChannelMemberDetail {
38470
- return ChannelMemberDetail.fromPartial(base ?? ({} as any));
38471
- },
38472
- fromPartial<I extends Exact<DeepPartial<ChannelMemberDetail>, I>>(object: I): ChannelMemberDetail {
38473
- const message = createBaseChannelMemberDetail();
38474
- message.member_id = object.member_id ?? "";
38475
- message.added_by = object.added_by ?? "";
38476
- return message;
38477
- },
38478
- };
38479
-
38480
- function createBaseChannelMemberList(): ChannelMemberList {
38481
- return { channel_members: [] };
38482
- }
38483
-
38484
- export const ChannelMemberList = {
38485
- encode(message: ChannelMemberList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
38486
- for (const v of message.channel_members) {
38487
- ChannelMemberDetail.encode(v!, writer.uint32(10).fork()).ldelim();
38488
- }
38489
- return writer;
38490
- },
38491
-
38492
- decode(input: _m0.Reader | Uint8Array, length?: number): ChannelMemberList {
38493
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
38494
- let end = length === undefined ? reader.len : reader.pos + length;
38495
- const message = createBaseChannelMemberList();
38496
- while (reader.pos < end) {
38497
- const tag = reader.uint32();
38498
- switch (tag >>> 3) {
38499
- case 1:
38500
- if (tag !== 10) {
38501
- break;
38502
- }
38503
-
38504
- message.channel_members.push(ChannelMemberDetail.decode(reader, reader.uint32()));
38505
- continue;
38506
- }
38507
- if ((tag & 7) === 4 || tag === 0) {
38508
- break;
38509
- }
38510
- reader.skipType(tag & 7);
38511
- }
38512
- return message;
38513
- },
38514
-
38515
- fromJSON(object: any): ChannelMemberList {
38516
- return {
38517
- channel_members: globalThis.Array.isArray(object?.channel_members)
38518
- ? object.channel_members.map((e: any) => ChannelMemberDetail.fromJSON(e))
38519
- : [],
38520
- };
38521
- },
38522
-
38523
- toJSON(message: ChannelMemberList): unknown {
38524
- const obj: any = {};
38525
- if (message.channel_members?.length) {
38526
- obj.channel_members = message.channel_members.map((e) => ChannelMemberDetail.toJSON(e));
38527
- }
38528
- return obj;
38529
- },
38530
-
38531
- create<I extends Exact<DeepPartial<ChannelMemberList>, I>>(base?: I): ChannelMemberList {
38532
- return ChannelMemberList.fromPartial(base ?? ({} as any));
38533
- },
38534
- fromPartial<I extends Exact<DeepPartial<ChannelMemberList>, I>>(object: I): ChannelMemberList {
38535
- const message = createBaseChannelMemberList();
38536
- message.channel_members = object.channel_members?.map((e) => ChannelMemberDetail.fromPartial(e)) || [];
38537
- return message;
38538
- },
38539
- };
38540
-
38541
38335
  function bytesFromBase64(b64: string): Uint8Array {
38542
38336
  if ((globalThis as any).Buffer) {
38543
38337
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
@@ -511,6 +511,8 @@ export interface ChannelUserList_ChannelUser {
511
511
  clan_avatar: string;
512
512
  /** clan Id */
513
513
  clan_id: string;
514
+ /** added by */
515
+ added_by: string;
514
516
  }
515
517
  /** A list of users belonging to a channel, along with their role. */
516
518
  export interface VoiceChannelUser {
@@ -3108,17 +3110,6 @@ export interface ForSaleItem {
3108
3110
  export interface ForSaleItemList {
3109
3111
  for_sale_items: ForSaleItem[];
3110
3112
  }
3111
- export interface ListChannelMemberRequest {
3112
- channel_id: string;
3113
- clan_id: string;
3114
- }
3115
- export interface ChannelMemberDetail {
3116
- member_id: string;
3117
- added_by: string;
3118
- }
3119
- export interface ChannelMemberList {
3120
- channel_members: ChannelMemberDetail[];
3121
- }
3122
3113
  export declare const Account: {
3123
3114
  encode(message: Account, writer?: _m0.Writer): _m0.Writer;
3124
3115
  decode(input: _m0.Reader | Uint8Array, length?: number): Account;
@@ -6167,6 +6158,7 @@ export declare const ChannelUserList: {
6167
6158
  clan_nick?: string | undefined;
6168
6159
  clan_avatar?: string | undefined;
6169
6160
  clan_id?: string | undefined;
6161
+ added_by?: string | undefined;
6170
6162
  }[] | undefined;
6171
6163
  cursor?: string | undefined;
6172
6164
  channel_id?: string | undefined;
@@ -6179,6 +6171,7 @@ export declare const ChannelUserList: {
6179
6171
  clan_nick?: string | undefined;
6180
6172
  clan_avatar?: string | undefined;
6181
6173
  clan_id?: string | undefined;
6174
+ added_by?: string | undefined;
6182
6175
  }[] & ({
6183
6176
  user_id?: string | undefined;
6184
6177
  role_id?: string[] | undefined;
@@ -6187,6 +6180,7 @@ export declare const ChannelUserList: {
6187
6180
  clan_nick?: string | undefined;
6188
6181
  clan_avatar?: string | undefined;
6189
6182
  clan_id?: string | undefined;
6183
+ added_by?: string | undefined;
6190
6184
  } & {
6191
6185
  user_id?: string | undefined;
6192
6186
  role_id?: (string[] & string[] & { [K in Exclude<keyof I["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -6195,6 +6189,7 @@ export declare const ChannelUserList: {
6195
6189
  clan_nick?: string | undefined;
6196
6190
  clan_avatar?: string | undefined;
6197
6191
  clan_id?: string | undefined;
6192
+ added_by?: string | undefined;
6198
6193
  } & { [K_1 in Exclude<keyof I["channel_users"][number], keyof ChannelUserList_ChannelUser>]: never; })[] & { [K_2 in Exclude<keyof I["channel_users"], keyof {
6199
6194
  user_id?: string | undefined;
6200
6195
  role_id?: string[] | undefined;
@@ -6203,6 +6198,7 @@ export declare const ChannelUserList: {
6203
6198
  clan_nick?: string | undefined;
6204
6199
  clan_avatar?: string | undefined;
6205
6200
  clan_id?: string | undefined;
6201
+ added_by?: string | undefined;
6206
6202
  }[]>]: never; }) | undefined;
6207
6203
  cursor?: string | undefined;
6208
6204
  channel_id?: string | undefined;
@@ -6216,6 +6212,7 @@ export declare const ChannelUserList: {
6216
6212
  clan_nick?: string | undefined;
6217
6213
  clan_avatar?: string | undefined;
6218
6214
  clan_id?: string | undefined;
6215
+ added_by?: string | undefined;
6219
6216
  }[] | undefined;
6220
6217
  cursor?: string | undefined;
6221
6218
  channel_id?: string | undefined;
@@ -6228,6 +6225,7 @@ export declare const ChannelUserList: {
6228
6225
  clan_nick?: string | undefined;
6229
6226
  clan_avatar?: string | undefined;
6230
6227
  clan_id?: string | undefined;
6228
+ added_by?: string | undefined;
6231
6229
  }[] & ({
6232
6230
  user_id?: string | undefined;
6233
6231
  role_id?: string[] | undefined;
@@ -6236,6 +6234,7 @@ export declare const ChannelUserList: {
6236
6234
  clan_nick?: string | undefined;
6237
6235
  clan_avatar?: string | undefined;
6238
6236
  clan_id?: string | undefined;
6237
+ added_by?: string | undefined;
6239
6238
  } & {
6240
6239
  user_id?: string | undefined;
6241
6240
  role_id?: (string[] & string[] & { [K_4 in Exclude<keyof I_1["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -6244,6 +6243,7 @@ export declare const ChannelUserList: {
6244
6243
  clan_nick?: string | undefined;
6245
6244
  clan_avatar?: string | undefined;
6246
6245
  clan_id?: string | undefined;
6246
+ added_by?: string | undefined;
6247
6247
  } & { [K_5 in Exclude<keyof I_1["channel_users"][number], keyof ChannelUserList_ChannelUser>]: never; })[] & { [K_6 in Exclude<keyof I_1["channel_users"], keyof {
6248
6248
  user_id?: string | undefined;
6249
6249
  role_id?: string[] | undefined;
@@ -6252,6 +6252,7 @@ export declare const ChannelUserList: {
6252
6252
  clan_nick?: string | undefined;
6253
6253
  clan_avatar?: string | undefined;
6254
6254
  clan_id?: string | undefined;
6255
+ added_by?: string | undefined;
6255
6256
  }[]>]: never; }) | undefined;
6256
6257
  cursor?: string | undefined;
6257
6258
  channel_id?: string | undefined;
@@ -6270,6 +6271,7 @@ export declare const ChannelUserList_ChannelUser: {
6270
6271
  clan_nick?: string | undefined;
6271
6272
  clan_avatar?: string | undefined;
6272
6273
  clan_id?: string | undefined;
6274
+ added_by?: string | undefined;
6273
6275
  } & {
6274
6276
  user_id?: string | undefined;
6275
6277
  role_id?: (string[] & string[] & { [K in Exclude<keyof I["role_id"], keyof string[]>]: never; }) | undefined;
@@ -6278,6 +6280,7 @@ export declare const ChannelUserList_ChannelUser: {
6278
6280
  clan_nick?: string | undefined;
6279
6281
  clan_avatar?: string | undefined;
6280
6282
  clan_id?: string | undefined;
6283
+ added_by?: string | undefined;
6281
6284
  } & { [K_1 in Exclude<keyof I, keyof ChannelUserList_ChannelUser>]: never; }>(base?: I | undefined): ChannelUserList_ChannelUser;
6282
6285
  fromPartial<I_1 extends {
6283
6286
  user_id?: string | undefined;
@@ -6287,6 +6290,7 @@ export declare const ChannelUserList_ChannelUser: {
6287
6290
  clan_nick?: string | undefined;
6288
6291
  clan_avatar?: string | undefined;
6289
6292
  clan_id?: string | undefined;
6293
+ added_by?: string | undefined;
6290
6294
  } & {
6291
6295
  user_id?: string | undefined;
6292
6296
  role_id?: (string[] & string[] & { [K_2 in Exclude<keyof I_1["role_id"], keyof string[]>]: never; }) | undefined;
@@ -6295,6 +6299,7 @@ export declare const ChannelUserList_ChannelUser: {
6295
6299
  clan_nick?: string | undefined;
6296
6300
  clan_avatar?: string | undefined;
6297
6301
  clan_id?: string | undefined;
6302
+ added_by?: string | undefined;
6298
6303
  } & { [K_3 in Exclude<keyof I_1, keyof ChannelUserList_ChannelUser>]: never; }>(object: I_1): ChannelUserList_ChannelUser;
6299
6304
  };
6300
6305
  export declare const VoiceChannelUser: {
@@ -24649,92 +24654,6 @@ export declare const ForSaleItemList: {
24649
24654
  }[]>]: never; }) | undefined;
24650
24655
  } & { [K_5 in Exclude<keyof I_1, "for_sale_items">]: never; }>(object: I_1): ForSaleItemList;
24651
24656
  };
24652
- export declare const ListChannelMemberRequest: {
24653
- encode(message: ListChannelMemberRequest, writer?: _m0.Writer): _m0.Writer;
24654
- decode(input: _m0.Reader | Uint8Array, length?: number): ListChannelMemberRequest;
24655
- fromJSON(object: any): ListChannelMemberRequest;
24656
- toJSON(message: ListChannelMemberRequest): unknown;
24657
- create<I extends {
24658
- channel_id?: string | undefined;
24659
- clan_id?: string | undefined;
24660
- } & {
24661
- channel_id?: string | undefined;
24662
- clan_id?: string | undefined;
24663
- } & { [K in Exclude<keyof I, keyof ListChannelMemberRequest>]: never; }>(base?: I | undefined): ListChannelMemberRequest;
24664
- fromPartial<I_1 extends {
24665
- channel_id?: string | undefined;
24666
- clan_id?: string | undefined;
24667
- } & {
24668
- channel_id?: string | undefined;
24669
- clan_id?: string | undefined;
24670
- } & { [K_1 in Exclude<keyof I_1, keyof ListChannelMemberRequest>]: never; }>(object: I_1): ListChannelMemberRequest;
24671
- };
24672
- export declare const ChannelMemberDetail: {
24673
- encode(message: ChannelMemberDetail, writer?: _m0.Writer): _m0.Writer;
24674
- decode(input: _m0.Reader | Uint8Array, length?: number): ChannelMemberDetail;
24675
- fromJSON(object: any): ChannelMemberDetail;
24676
- toJSON(message: ChannelMemberDetail): unknown;
24677
- create<I extends {
24678
- member_id?: string | undefined;
24679
- added_by?: string | undefined;
24680
- } & {
24681
- member_id?: string | undefined;
24682
- added_by?: string | undefined;
24683
- } & { [K in Exclude<keyof I, keyof ChannelMemberDetail>]: never; }>(base?: I | undefined): ChannelMemberDetail;
24684
- fromPartial<I_1 extends {
24685
- member_id?: string | undefined;
24686
- added_by?: string | undefined;
24687
- } & {
24688
- member_id?: string | undefined;
24689
- added_by?: string | undefined;
24690
- } & { [K_1 in Exclude<keyof I_1, keyof ChannelMemberDetail>]: never; }>(object: I_1): ChannelMemberDetail;
24691
- };
24692
- export declare const ChannelMemberList: {
24693
- encode(message: ChannelMemberList, writer?: _m0.Writer): _m0.Writer;
24694
- decode(input: _m0.Reader | Uint8Array, length?: number): ChannelMemberList;
24695
- fromJSON(object: any): ChannelMemberList;
24696
- toJSON(message: ChannelMemberList): unknown;
24697
- create<I extends {
24698
- channel_members?: {
24699
- member_id?: string | undefined;
24700
- added_by?: string | undefined;
24701
- }[] | undefined;
24702
- } & {
24703
- channel_members?: ({
24704
- member_id?: string | undefined;
24705
- added_by?: string | undefined;
24706
- }[] & ({
24707
- member_id?: string | undefined;
24708
- added_by?: string | undefined;
24709
- } & {
24710
- member_id?: string | undefined;
24711
- added_by?: string | undefined;
24712
- } & { [K in Exclude<keyof I["channel_members"][number], keyof ChannelMemberDetail>]: never; })[] & { [K_1 in Exclude<keyof I["channel_members"], keyof {
24713
- member_id?: string | undefined;
24714
- added_by?: string | undefined;
24715
- }[]>]: never; }) | undefined;
24716
- } & { [K_2 in Exclude<keyof I, "channel_members">]: never; }>(base?: I | undefined): ChannelMemberList;
24717
- fromPartial<I_1 extends {
24718
- channel_members?: {
24719
- member_id?: string | undefined;
24720
- added_by?: string | undefined;
24721
- }[] | undefined;
24722
- } & {
24723
- channel_members?: ({
24724
- member_id?: string | undefined;
24725
- added_by?: string | undefined;
24726
- }[] & ({
24727
- member_id?: string | undefined;
24728
- added_by?: string | undefined;
24729
- } & {
24730
- member_id?: string | undefined;
24731
- added_by?: string | undefined;
24732
- } & { [K_3 in Exclude<keyof I_1["channel_members"][number], keyof ChannelMemberDetail>]: never; })[] & { [K_4 in Exclude<keyof I_1["channel_members"], keyof {
24733
- member_id?: string | undefined;
24734
- added_by?: string | undefined;
24735
- }[]>]: never; }) | undefined;
24736
- } & { [K_5 in Exclude<keyof I_1, "channel_members">]: never; }>(object: I_1): ChannelMemberList;
24737
- };
24738
24657
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
24739
24658
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
24740
24659
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -2543,6 +2543,7 @@ export declare const Envelope: {
2543
2543
  clan_nick?: string | undefined;
2544
2544
  clan_avatar?: string | undefined;
2545
2545
  clan_id?: string | undefined;
2546
+ added_by?: string | undefined;
2546
2547
  }[] | undefined;
2547
2548
  cursor?: string | undefined;
2548
2549
  channel_id?: string | undefined;
@@ -6706,6 +6707,7 @@ export declare const Envelope: {
6706
6707
  clan_nick?: string | undefined;
6707
6708
  clan_avatar?: string | undefined;
6708
6709
  clan_id?: string | undefined;
6710
+ added_by?: string | undefined;
6709
6711
  }[] | undefined;
6710
6712
  cursor?: string | undefined;
6711
6713
  channel_id?: string | undefined;
@@ -8135,6 +8137,7 @@ export declare const Envelope: {
8135
8137
  clan_nick?: string | undefined;
8136
8138
  clan_avatar?: string | undefined;
8137
8139
  clan_id?: string | undefined;
8140
+ added_by?: string | undefined;
8138
8141
  }[] | undefined;
8139
8142
  cursor?: string | undefined;
8140
8143
  channel_id?: string | undefined;
@@ -8147,6 +8150,7 @@ export declare const Envelope: {
8147
8150
  clan_nick?: string | undefined;
8148
8151
  clan_avatar?: string | undefined;
8149
8152
  clan_id?: string | undefined;
8153
+ added_by?: string | undefined;
8150
8154
  }[] & ({
8151
8155
  user_id?: string | undefined;
8152
8156
  role_id?: string[] | undefined;
@@ -8155,6 +8159,7 @@ export declare const Envelope: {
8155
8159
  clan_nick?: string | undefined;
8156
8160
  clan_avatar?: string | undefined;
8157
8161
  clan_id?: string | undefined;
8162
+ added_by?: string | undefined;
8158
8163
  } & {
8159
8164
  user_id?: string | undefined;
8160
8165
  role_id?: (string[] & string[] & { [K_242 in Exclude<keyof I["list_data_socket"]["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -8163,6 +8168,7 @@ export declare const Envelope: {
8163
8168
  clan_nick?: string | undefined;
8164
8169
  clan_avatar?: string | undefined;
8165
8170
  clan_id?: string | undefined;
8171
+ added_by?: string | undefined;
8166
8172
  } & { [K_243 in Exclude<keyof I["list_data_socket"]["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_244 in Exclude<keyof I["list_data_socket"]["channel_user_list"]["channel_users"], keyof {
8167
8173
  user_id?: string | undefined;
8168
8174
  role_id?: string[] | undefined;
@@ -8171,6 +8177,7 @@ export declare const Envelope: {
8171
8177
  clan_nick?: string | undefined;
8172
8178
  clan_avatar?: string | undefined;
8173
8179
  clan_id?: string | undefined;
8180
+ added_by?: string | undefined;
8174
8181
  }[]>]: never; }) | undefined;
8175
8182
  cursor?: string | undefined;
8176
8183
  channel_id?: string | undefined;
@@ -12347,6 +12354,7 @@ export declare const Envelope: {
12347
12354
  clan_nick?: string | undefined;
12348
12355
  clan_avatar?: string | undefined;
12349
12356
  clan_id?: string | undefined;
12357
+ added_by?: string | undefined;
12350
12358
  }[] | undefined;
12351
12359
  cursor?: string | undefined;
12352
12360
  channel_id?: string | undefined;
@@ -16510,6 +16518,7 @@ export declare const Envelope: {
16510
16518
  clan_nick?: string | undefined;
16511
16519
  clan_avatar?: string | undefined;
16512
16520
  clan_id?: string | undefined;
16521
+ added_by?: string | undefined;
16513
16522
  }[] | undefined;
16514
16523
  cursor?: string | undefined;
16515
16524
  channel_id?: string | undefined;
@@ -17939,6 +17948,7 @@ export declare const Envelope: {
17939
17948
  clan_nick?: string | undefined;
17940
17949
  clan_avatar?: string | undefined;
17941
17950
  clan_id?: string | undefined;
17951
+ added_by?: string | undefined;
17942
17952
  }[] | undefined;
17943
17953
  cursor?: string | undefined;
17944
17954
  channel_id?: string | undefined;
@@ -17951,6 +17961,7 @@ export declare const Envelope: {
17951
17961
  clan_nick?: string | undefined;
17952
17962
  clan_avatar?: string | undefined;
17953
17963
  clan_id?: string | undefined;
17964
+ added_by?: string | undefined;
17954
17965
  }[] & ({
17955
17966
  user_id?: string | undefined;
17956
17967
  role_id?: string[] | undefined;
@@ -17959,6 +17970,7 @@ export declare const Envelope: {
17959
17970
  clan_nick?: string | undefined;
17960
17971
  clan_avatar?: string | undefined;
17961
17972
  clan_id?: string | undefined;
17973
+ added_by?: string | undefined;
17962
17974
  } & {
17963
17975
  user_id?: string | undefined;
17964
17976
  role_id?: (string[] & string[] & { [K_633 in Exclude<keyof I_1["list_data_socket"]["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -17967,6 +17979,7 @@ export declare const Envelope: {
17967
17979
  clan_nick?: string | undefined;
17968
17980
  clan_avatar?: string | undefined;
17969
17981
  clan_id?: string | undefined;
17982
+ added_by?: string | undefined;
17970
17983
  } & { [K_634 in Exclude<keyof I_1["list_data_socket"]["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_635 in Exclude<keyof I_1["list_data_socket"]["channel_user_list"]["channel_users"], keyof {
17971
17984
  user_id?: string | undefined;
17972
17985
  role_id?: string[] | undefined;
@@ -17975,6 +17988,7 @@ export declare const Envelope: {
17975
17988
  clan_nick?: string | undefined;
17976
17989
  clan_avatar?: string | undefined;
17977
17990
  clan_id?: string | undefined;
17991
+ added_by?: string | undefined;
17978
17992
  }[]>]: never; }) | undefined;
17979
17993
  cursor?: string | undefined;
17980
17994
  channel_id?: string | undefined;
@@ -28552,6 +28566,7 @@ export declare const ListDataSocket: {
28552
28566
  clan_nick?: string | undefined;
28553
28567
  clan_avatar?: string | undefined;
28554
28568
  clan_id?: string | undefined;
28569
+ added_by?: string | undefined;
28555
28570
  }[] | undefined;
28556
28571
  cursor?: string | undefined;
28557
28572
  channel_id?: string | undefined;
@@ -29981,6 +29996,7 @@ export declare const ListDataSocket: {
29981
29996
  clan_nick?: string | undefined;
29982
29997
  clan_avatar?: string | undefined;
29983
29998
  clan_id?: string | undefined;
29999
+ added_by?: string | undefined;
29984
30000
  }[] | undefined;
29985
30001
  cursor?: string | undefined;
29986
30002
  channel_id?: string | undefined;
@@ -29993,6 +30009,7 @@ export declare const ListDataSocket: {
29993
30009
  clan_nick?: string | undefined;
29994
30010
  clan_avatar?: string | undefined;
29995
30011
  clan_id?: string | undefined;
30012
+ added_by?: string | undefined;
29996
30013
  }[] & ({
29997
30014
  user_id?: string | undefined;
29998
30015
  role_id?: string[] | undefined;
@@ -30001,6 +30018,7 @@ export declare const ListDataSocket: {
30001
30018
  clan_nick?: string | undefined;
30002
30019
  clan_avatar?: string | undefined;
30003
30020
  clan_id?: string | undefined;
30021
+ added_by?: string | undefined;
30004
30022
  } & {
30005
30023
  user_id?: string | undefined;
30006
30024
  role_id?: (string[] & string[] & { [K_48 in Exclude<keyof I["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -30009,6 +30027,7 @@ export declare const ListDataSocket: {
30009
30027
  clan_nick?: string | undefined;
30010
30028
  clan_avatar?: string | undefined;
30011
30029
  clan_id?: string | undefined;
30030
+ added_by?: string | undefined;
30012
30031
  } & { [K_49 in Exclude<keyof I["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_50 in Exclude<keyof I["channel_user_list"]["channel_users"], keyof {
30013
30032
  user_id?: string | undefined;
30014
30033
  role_id?: string[] | undefined;
@@ -30017,6 +30036,7 @@ export declare const ListDataSocket: {
30017
30036
  clan_nick?: string | undefined;
30018
30037
  clan_avatar?: string | undefined;
30019
30038
  clan_id?: string | undefined;
30039
+ added_by?: string | undefined;
30020
30040
  }[]>]: never; }) | undefined;
30021
30041
  cursor?: string | undefined;
30022
30042
  channel_id?: string | undefined;
@@ -32906,6 +32926,7 @@ export declare const ListDataSocket: {
32906
32926
  clan_nick?: string | undefined;
32907
32927
  clan_avatar?: string | undefined;
32908
32928
  clan_id?: string | undefined;
32929
+ added_by?: string | undefined;
32909
32930
  }[] | undefined;
32910
32931
  cursor?: string | undefined;
32911
32932
  channel_id?: string | undefined;
@@ -34335,6 +34356,7 @@ export declare const ListDataSocket: {
34335
34356
  clan_nick?: string | undefined;
34336
34357
  clan_avatar?: string | undefined;
34337
34358
  clan_id?: string | undefined;
34359
+ added_by?: string | undefined;
34338
34360
  }[] | undefined;
34339
34361
  cursor?: string | undefined;
34340
34362
  channel_id?: string | undefined;
@@ -34347,6 +34369,7 @@ export declare const ListDataSocket: {
34347
34369
  clan_nick?: string | undefined;
34348
34370
  clan_avatar?: string | undefined;
34349
34371
  clan_id?: string | undefined;
34372
+ added_by?: string | undefined;
34350
34373
  }[] & ({
34351
34374
  user_id?: string | undefined;
34352
34375
  role_id?: string[] | undefined;
@@ -34355,6 +34378,7 @@ export declare const ListDataSocket: {
34355
34378
  clan_nick?: string | undefined;
34356
34379
  clan_avatar?: string | undefined;
34357
34380
  clan_id?: string | undefined;
34381
+ added_by?: string | undefined;
34358
34382
  } & {
34359
34383
  user_id?: string | undefined;
34360
34384
  role_id?: (string[] & string[] & { [K_236 in Exclude<keyof I_1["channel_user_list"]["channel_users"][number]["role_id"], keyof string[]>]: never; }) | undefined;
@@ -34363,6 +34387,7 @@ export declare const ListDataSocket: {
34363
34387
  clan_nick?: string | undefined;
34364
34388
  clan_avatar?: string | undefined;
34365
34389
  clan_id?: string | undefined;
34390
+ added_by?: string | undefined;
34366
34391
  } & { [K_237 in Exclude<keyof I_1["channel_user_list"]["channel_users"][number], keyof import("../api/api").ChannelUserList_ChannelUser>]: never; })[] & { [K_238 in Exclude<keyof I_1["channel_user_list"]["channel_users"], keyof {
34367
34392
  user_id?: string | undefined;
34368
34393
  role_id?: string[] | undefined;
@@ -34371,6 +34396,7 @@ export declare const ListDataSocket: {
34371
34396
  clan_nick?: string | undefined;
34372
34397
  clan_avatar?: string | undefined;
34373
34398
  clan_id?: string | undefined;
34399
+ added_by?: string | undefined;
34374
34400
  }[]>]: never; }) | undefined;
34375
34401
  cursor?: string | undefined;
34376
34402
  channel_id?: string | undefined;
@@ -4061,7 +4061,7 @@ var ChannelUserList = {
4061
4061
  }
4062
4062
  };
4063
4063
  function createBaseChannelUserList_ChannelUser() {
4064
- return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "" };
4064
+ return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "", added_by: "" };
4065
4065
  }
4066
4066
  var ChannelUserList_ChannelUser = {
4067
4067
  encode(message, writer = import_minimal4.default.Writer.create()) {
@@ -4086,6 +4086,9 @@ var ChannelUserList_ChannelUser = {
4086
4086
  if (message.clan_id !== "") {
4087
4087
  writer.uint32(58).string(message.clan_id);
4088
4088
  }
4089
+ if (message.added_by !== "") {
4090
+ writer.uint32(66).string(message.added_by);
4091
+ }
4089
4092
  return writer;
4090
4093
  },
4091
4094
  decode(input, length) {
@@ -4137,6 +4140,12 @@ var ChannelUserList_ChannelUser = {
4137
4140
  }
4138
4141
  message.clan_id = reader.string();
4139
4142
  continue;
4143
+ case 8:
4144
+ if (tag !== 66) {
4145
+ break;
4146
+ }
4147
+ message.added_by = reader.string();
4148
+ continue;
4140
4149
  }
4141
4150
  if ((tag & 7) === 4 || tag === 0) {
4142
4151
  break;
@@ -4153,7 +4162,8 @@ var ChannelUserList_ChannelUser = {
4153
4162
  thread_id: isSet3(object.thread_id) ? globalThis.String(object.thread_id) : "",
4154
4163
  clan_nick: isSet3(object.clan_nick) ? globalThis.String(object.clan_nick) : "",
4155
4164
  clan_avatar: isSet3(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
4156
- clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : ""
4165
+ clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
4166
+ added_by: isSet3(object.added_by) ? globalThis.String(object.added_by) : ""
4157
4167
  };
4158
4168
  },
4159
4169
  toJSON(message) {
@@ -4180,13 +4190,16 @@ var ChannelUserList_ChannelUser = {
4180
4190
  if (message.clan_id !== "") {
4181
4191
  obj.clan_id = message.clan_id;
4182
4192
  }
4193
+ if (message.added_by !== "") {
4194
+ obj.added_by = message.added_by;
4195
+ }
4183
4196
  return obj;
4184
4197
  },
4185
4198
  create(base) {
4186
4199
  return ChannelUserList_ChannelUser.fromPartial(base != null ? base : {});
4187
4200
  },
4188
4201
  fromPartial(object) {
4189
- var _a, _b, _c, _d, _e, _f, _g;
4202
+ var _a, _b, _c, _d, _e, _f, _g, _h;
4190
4203
  const message = createBaseChannelUserList_ChannelUser();
4191
4204
  message.user_id = (_a = object.user_id) != null ? _a : "";
4192
4205
  message.role_id = ((_b = object.role_id) == null ? void 0 : _b.map((e) => e)) || [];
@@ -4195,6 +4208,7 @@ var ChannelUserList_ChannelUser = {
4195
4208
  message.clan_nick = (_e = object.clan_nick) != null ? _e : "";
4196
4209
  message.clan_avatar = (_f = object.clan_avatar) != null ? _f : "";
4197
4210
  message.clan_id = (_g = object.clan_id) != null ? _g : "";
4211
+ message.added_by = (_h = object.added_by) != null ? _h : "";
4198
4212
  return message;
4199
4213
  }
4200
4214
  };
@@ -4048,7 +4048,7 @@ var ChannelUserList = {
4048
4048
  }
4049
4049
  };
4050
4050
  function createBaseChannelUserList_ChannelUser() {
4051
- return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "" };
4051
+ return { user_id: "", role_id: [], id: "", thread_id: "", clan_nick: "", clan_avatar: "", clan_id: "", added_by: "" };
4052
4052
  }
4053
4053
  var ChannelUserList_ChannelUser = {
4054
4054
  encode(message, writer = import_minimal4.default.Writer.create()) {
@@ -4073,6 +4073,9 @@ var ChannelUserList_ChannelUser = {
4073
4073
  if (message.clan_id !== "") {
4074
4074
  writer.uint32(58).string(message.clan_id);
4075
4075
  }
4076
+ if (message.added_by !== "") {
4077
+ writer.uint32(66).string(message.added_by);
4078
+ }
4076
4079
  return writer;
4077
4080
  },
4078
4081
  decode(input, length) {
@@ -4124,6 +4127,12 @@ var ChannelUserList_ChannelUser = {
4124
4127
  }
4125
4128
  message.clan_id = reader.string();
4126
4129
  continue;
4130
+ case 8:
4131
+ if (tag !== 66) {
4132
+ break;
4133
+ }
4134
+ message.added_by = reader.string();
4135
+ continue;
4127
4136
  }
4128
4137
  if ((tag & 7) === 4 || tag === 0) {
4129
4138
  break;
@@ -4140,7 +4149,8 @@ var ChannelUserList_ChannelUser = {
4140
4149
  thread_id: isSet3(object.thread_id) ? globalThis.String(object.thread_id) : "",
4141
4150
  clan_nick: isSet3(object.clan_nick) ? globalThis.String(object.clan_nick) : "",
4142
4151
  clan_avatar: isSet3(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
4143
- clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : ""
4152
+ clan_id: isSet3(object.clan_id) ? globalThis.String(object.clan_id) : "",
4153
+ added_by: isSet3(object.added_by) ? globalThis.String(object.added_by) : ""
4144
4154
  };
4145
4155
  },
4146
4156
  toJSON(message) {
@@ -4167,13 +4177,16 @@ var ChannelUserList_ChannelUser = {
4167
4177
  if (message.clan_id !== "") {
4168
4178
  obj.clan_id = message.clan_id;
4169
4179
  }
4180
+ if (message.added_by !== "") {
4181
+ obj.added_by = message.added_by;
4182
+ }
4170
4183
  return obj;
4171
4184
  },
4172
4185
  create(base) {
4173
4186
  return ChannelUserList_ChannelUser.fromPartial(base != null ? base : {});
4174
4187
  },
4175
4188
  fromPartial(object) {
4176
- var _a, _b, _c, _d, _e, _f, _g;
4189
+ var _a, _b, _c, _d, _e, _f, _g, _h;
4177
4190
  const message = createBaseChannelUserList_ChannelUser();
4178
4191
  message.user_id = (_a = object.user_id) != null ? _a : "";
4179
4192
  message.role_id = ((_b = object.role_id) == null ? void 0 : _b.map((e) => e)) || [];
@@ -4182,6 +4195,7 @@ var ChannelUserList_ChannelUser = {
4182
4195
  message.clan_nick = (_e = object.clan_nick) != null ? _e : "";
4183
4196
  message.clan_avatar = (_f = object.clan_avatar) != null ? _f : "";
4184
4197
  message.clan_id = (_g = object.clan_id) != null ? _g : "";
4198
+ message.added_by = (_h = object.added_by) != null ? _h : "";
4185
4199
  return message;
4186
4200
  }
4187
4201
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.22",
3
+ "version": "1.8.23",
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",