mezon-js-protobuf 1.8.75 → 1.8.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/api.ts CHANGED
@@ -323,15 +323,15 @@ export interface ChannelMessage {
323
323
  /** The clan avatar */
324
324
  clan_avatar: string;
325
325
  /** Emoji reaction */
326
- reactions: string;
326
+ reactions: Uint8Array;
327
327
  /** Message mention */
328
- mentions: string;
328
+ mentions: Uint8Array;
329
329
  /** Message attachment */
330
- attachments: string;
330
+ attachments: Uint8Array;
331
331
  /** Message reference */
332
- references: string;
332
+ references: Uint8Array;
333
333
  /** referenced message */
334
- referenced_message: string;
334
+ referenced_message: Uint8Array;
335
335
  /** create time in ms */
336
336
  create_time_seconds: number;
337
337
  /** update time in ms */
@@ -1022,6 +1022,7 @@ export interface Session {
1022
1022
  /** Update username */
1023
1023
  export interface UpdateUsernameRequest {
1024
1024
  username: string;
1025
+ display_name: string;
1025
1026
  }
1026
1027
 
1027
1028
  /** Update a user's account details. */
@@ -1506,13 +1507,13 @@ export interface ChannelMessageHeader {
1506
1507
  /** the content */
1507
1508
  content: string;
1508
1509
  /** the attachment */
1509
- attachment: string;
1510
+ attachment: Uint8Array;
1510
1511
  /** the reference */
1511
- reference: string;
1512
+ reference: Uint8Array;
1512
1513
  /** the mention */
1513
- mention: string;
1514
+ mention: Uint8Array;
1514
1515
  /** the reactions */
1515
- reaction: string;
1516
+ reaction: Uint8Array;
1516
1517
  }
1517
1518
 
1518
1519
  /** Channel description record */
@@ -1589,6 +1590,12 @@ export interface ChannelDescription {
1589
1590
  export interface ChannelDescList {
1590
1591
  /** A list of channel. */
1591
1592
  channeldesc: ChannelDescription[];
1593
+ }
1594
+
1595
+ /** A list of channel description, usually a result of a list operation. */
1596
+ export interface ChannelDescListNoPool {
1597
+ /** A list of channel. */
1598
+ channeldesc: ChannelDescription[];
1592
1599
  /** Page thread */
1593
1600
  page: number;
1594
1601
  }
@@ -3672,10 +3679,10 @@ export interface Message2InboxRequest {
3672
3679
  clan_id: string;
3673
3680
  avatar: string;
3674
3681
  content: string;
3675
- mentions: string;
3676
- attachments: string;
3677
- reactions: string;
3678
- references: string;
3682
+ mentions: Uint8Array;
3683
+ attachments: Uint8Array;
3684
+ reactions: Uint8Array;
3685
+ references: Uint8Array;
3679
3686
  }
3680
3687
 
3681
3688
  /** Send an email with password to the server. Used with authenticate/link/unlink. */
@@ -3790,6 +3797,34 @@ export interface LogedDevice {
3790
3797
  is_current: boolean;
3791
3798
  }
3792
3799
 
3800
+ export interface DirectFcmProto {
3801
+ title: string;
3802
+ link: string;
3803
+ content: string;
3804
+ channel_id: string;
3805
+ sender_id: string;
3806
+ avatar: string;
3807
+ clan_id: string;
3808
+ attachments: Uint8Array;
3809
+ display_name: string;
3810
+ create_time_seconds: number;
3811
+ update_time_seconds: number;
3812
+ username: string;
3813
+ mentions: Uint8Array;
3814
+ }
3815
+
3816
+ export interface MessageMentionList {
3817
+ mentions: MessageMention[];
3818
+ }
3819
+
3820
+ export interface MessageAttachmentList {
3821
+ attachments: MessageAttachment[];
3822
+ }
3823
+
3824
+ export interface MessageRefList {
3825
+ refs: MessageRef[];
3826
+ }
3827
+
3793
3828
  function createBaseAccount(): Account {
3794
3829
  return {
3795
3830
  user: undefined,
@@ -4974,11 +5009,11 @@ function createBaseChannelMessage(): ChannelMessage {
4974
5009
  display_name: "",
4975
5010
  clan_nick: "",
4976
5011
  clan_avatar: "",
4977
- reactions: "",
4978
- mentions: "",
4979
- attachments: "",
4980
- references: "",
4981
- referenced_message: "",
5012
+ reactions: new Uint8Array(0),
5013
+ mentions: new Uint8Array(0),
5014
+ attachments: new Uint8Array(0),
5015
+ references: new Uint8Array(0),
5016
+ referenced_message: new Uint8Array(0),
4982
5017
  create_time_seconds: 0,
4983
5018
  update_time_seconds: 0,
4984
5019
  mode: 0,
@@ -5038,20 +5073,20 @@ export const ChannelMessage = {
5038
5073
  if (message.clan_avatar !== "") {
5039
5074
  writer.uint32(130).string(message.clan_avatar);
5040
5075
  }
5041
- if (message.reactions !== "") {
5042
- writer.uint32(138).string(message.reactions);
5076
+ if (message.reactions.length !== 0) {
5077
+ writer.uint32(138).bytes(message.reactions);
5043
5078
  }
5044
- if (message.mentions !== "") {
5045
- writer.uint32(146).string(message.mentions);
5079
+ if (message.mentions.length !== 0) {
5080
+ writer.uint32(146).bytes(message.mentions);
5046
5081
  }
5047
- if (message.attachments !== "") {
5048
- writer.uint32(154).string(message.attachments);
5082
+ if (message.attachments.length !== 0) {
5083
+ writer.uint32(154).bytes(message.attachments);
5049
5084
  }
5050
- if (message.references !== "") {
5051
- writer.uint32(162).string(message.references);
5085
+ if (message.references.length !== 0) {
5086
+ writer.uint32(162).bytes(message.references);
5052
5087
  }
5053
- if (message.referenced_message !== "") {
5054
- writer.uint32(170).string(message.referenced_message);
5088
+ if (message.referenced_message.length !== 0) {
5089
+ writer.uint32(170).bytes(message.referenced_message);
5055
5090
  }
5056
5091
  if (message.create_time_seconds !== 0) {
5057
5092
  writer.uint32(176).uint32(message.create_time_seconds);
@@ -5198,35 +5233,35 @@ export const ChannelMessage = {
5198
5233
  break;
5199
5234
  }
5200
5235
 
5201
- message.reactions = reader.string();
5236
+ message.reactions = reader.bytes();
5202
5237
  continue;
5203
5238
  case 18:
5204
5239
  if (tag !== 146) {
5205
5240
  break;
5206
5241
  }
5207
5242
 
5208
- message.mentions = reader.string();
5243
+ message.mentions = reader.bytes();
5209
5244
  continue;
5210
5245
  case 19:
5211
5246
  if (tag !== 154) {
5212
5247
  break;
5213
5248
  }
5214
5249
 
5215
- message.attachments = reader.string();
5250
+ message.attachments = reader.bytes();
5216
5251
  continue;
5217
5252
  case 20:
5218
5253
  if (tag !== 162) {
5219
5254
  break;
5220
5255
  }
5221
5256
 
5222
- message.references = reader.string();
5257
+ message.references = reader.bytes();
5223
5258
  continue;
5224
5259
  case 21:
5225
5260
  if (tag !== 170) {
5226
5261
  break;
5227
5262
  }
5228
5263
 
5229
- message.referenced_message = reader.string();
5264
+ message.referenced_message = reader.bytes();
5230
5265
  continue;
5231
5266
  case 22:
5232
5267
  if (tag !== 176) {
@@ -5297,11 +5332,13 @@ export const ChannelMessage = {
5297
5332
  display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
5298
5333
  clan_nick: isSet(object.clan_nick) ? globalThis.String(object.clan_nick) : "",
5299
5334
  clan_avatar: isSet(object.clan_avatar) ? globalThis.String(object.clan_avatar) : "",
5300
- reactions: isSet(object.reactions) ? globalThis.String(object.reactions) : "",
5301
- mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
5302
- attachments: isSet(object.attachments) ? globalThis.String(object.attachments) : "",
5303
- references: isSet(object.references) ? globalThis.String(object.references) : "",
5304
- referenced_message: isSet(object.referenced_message) ? globalThis.String(object.referenced_message) : "",
5335
+ reactions: isSet(object.reactions) ? bytesFromBase64(object.reactions) : new Uint8Array(0),
5336
+ mentions: isSet(object.mentions) ? bytesFromBase64(object.mentions) : new Uint8Array(0),
5337
+ attachments: isSet(object.attachments) ? bytesFromBase64(object.attachments) : new Uint8Array(0),
5338
+ references: isSet(object.references) ? bytesFromBase64(object.references) : new Uint8Array(0),
5339
+ referenced_message: isSet(object.referenced_message)
5340
+ ? bytesFromBase64(object.referenced_message)
5341
+ : new Uint8Array(0),
5305
5342
  create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
5306
5343
  update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
5307
5344
  mode: isSet(object.mode) ? globalThis.Number(object.mode) : 0,
@@ -5361,20 +5398,20 @@ export const ChannelMessage = {
5361
5398
  if (message.clan_avatar !== "") {
5362
5399
  obj.clan_avatar = message.clan_avatar;
5363
5400
  }
5364
- if (message.reactions !== "") {
5365
- obj.reactions = message.reactions;
5401
+ if (message.reactions.length !== 0) {
5402
+ obj.reactions = base64FromBytes(message.reactions);
5366
5403
  }
5367
- if (message.mentions !== "") {
5368
- obj.mentions = message.mentions;
5404
+ if (message.mentions.length !== 0) {
5405
+ obj.mentions = base64FromBytes(message.mentions);
5369
5406
  }
5370
- if (message.attachments !== "") {
5371
- obj.attachments = message.attachments;
5407
+ if (message.attachments.length !== 0) {
5408
+ obj.attachments = base64FromBytes(message.attachments);
5372
5409
  }
5373
- if (message.references !== "") {
5374
- obj.references = message.references;
5410
+ if (message.references.length !== 0) {
5411
+ obj.references = base64FromBytes(message.references);
5375
5412
  }
5376
- if (message.referenced_message !== "") {
5377
- obj.referenced_message = message.referenced_message;
5413
+ if (message.referenced_message.length !== 0) {
5414
+ obj.referenced_message = base64FromBytes(message.referenced_message);
5378
5415
  }
5379
5416
  if (message.create_time_seconds !== 0) {
5380
5417
  obj.create_time_seconds = Math.round(message.create_time_seconds);
@@ -5418,11 +5455,11 @@ export const ChannelMessage = {
5418
5455
  message.display_name = object.display_name ?? "";
5419
5456
  message.clan_nick = object.clan_nick ?? "";
5420
5457
  message.clan_avatar = object.clan_avatar ?? "";
5421
- message.reactions = object.reactions ?? "";
5422
- message.mentions = object.mentions ?? "";
5423
- message.attachments = object.attachments ?? "";
5424
- message.references = object.references ?? "";
5425
- message.referenced_message = object.referenced_message ?? "";
5458
+ message.reactions = object.reactions ?? new Uint8Array(0);
5459
+ message.mentions = object.mentions ?? new Uint8Array(0);
5460
+ message.attachments = object.attachments ?? new Uint8Array(0);
5461
+ message.references = object.references ?? new Uint8Array(0);
5462
+ message.referenced_message = object.referenced_message ?? new Uint8Array(0);
5426
5463
  message.create_time_seconds = object.create_time_seconds ?? 0;
5427
5464
  message.update_time_seconds = object.update_time_seconds ?? 0;
5428
5465
  message.mode = object.mode ?? 0;
@@ -10524,7 +10561,7 @@ export const Session = {
10524
10561
  };
10525
10562
 
10526
10563
  function createBaseUpdateUsernameRequest(): UpdateUsernameRequest {
10527
- return { username: "" };
10564
+ return { username: "", display_name: "" };
10528
10565
  }
10529
10566
 
10530
10567
  export const UpdateUsernameRequest = {
@@ -10532,6 +10569,9 @@ export const UpdateUsernameRequest = {
10532
10569
  if (message.username !== "") {
10533
10570
  writer.uint32(10).string(message.username);
10534
10571
  }
10572
+ if (message.display_name !== "") {
10573
+ writer.uint32(18).string(message.display_name);
10574
+ }
10535
10575
  return writer;
10536
10576
  },
10537
10577
 
@@ -10549,6 +10589,13 @@ export const UpdateUsernameRequest = {
10549
10589
 
10550
10590
  message.username = reader.string();
10551
10591
  continue;
10592
+ case 2:
10593
+ if (tag !== 18) {
10594
+ break;
10595
+ }
10596
+
10597
+ message.display_name = reader.string();
10598
+ continue;
10552
10599
  }
10553
10600
  if ((tag & 7) === 4 || tag === 0) {
10554
10601
  break;
@@ -10559,7 +10606,10 @@ export const UpdateUsernameRequest = {
10559
10606
  },
10560
10607
 
10561
10608
  fromJSON(object: any): UpdateUsernameRequest {
10562
- return { username: isSet(object.username) ? globalThis.String(object.username) : "" };
10609
+ return {
10610
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
10611
+ display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
10612
+ };
10563
10613
  },
10564
10614
 
10565
10615
  toJSON(message: UpdateUsernameRequest): unknown {
@@ -10567,6 +10617,9 @@ export const UpdateUsernameRequest = {
10567
10617
  if (message.username !== "") {
10568
10618
  obj.username = message.username;
10569
10619
  }
10620
+ if (message.display_name !== "") {
10621
+ obj.display_name = message.display_name;
10622
+ }
10570
10623
  return obj;
10571
10624
  },
10572
10625
 
@@ -10576,6 +10629,7 @@ export const UpdateUsernameRequest = {
10576
10629
  fromPartial<I extends Exact<DeepPartial<UpdateUsernameRequest>, I>>(object: I): UpdateUsernameRequest {
10577
10630
  const message = createBaseUpdateUsernameRequest();
10578
10631
  message.username = object.username ?? "";
10632
+ message.display_name = object.display_name ?? "";
10579
10633
  return message;
10580
10634
  },
10581
10635
  };
@@ -14493,10 +14547,10 @@ function createBaseChannelMessageHeader(): ChannelMessageHeader {
14493
14547
  timestamp_seconds: 0,
14494
14548
  sender_id: "",
14495
14549
  content: "",
14496
- attachment: "",
14497
- reference: "",
14498
- mention: "",
14499
- reaction: "",
14550
+ attachment: new Uint8Array(0),
14551
+ reference: new Uint8Array(0),
14552
+ mention: new Uint8Array(0),
14553
+ reaction: new Uint8Array(0),
14500
14554
  };
14501
14555
  }
14502
14556
 
@@ -14514,17 +14568,17 @@ export const ChannelMessageHeader = {
14514
14568
  if (message.content !== "") {
14515
14569
  writer.uint32(34).string(message.content);
14516
14570
  }
14517
- if (message.attachment !== "") {
14518
- writer.uint32(42).string(message.attachment);
14571
+ if (message.attachment.length !== 0) {
14572
+ writer.uint32(42).bytes(message.attachment);
14519
14573
  }
14520
- if (message.reference !== "") {
14521
- writer.uint32(50).string(message.reference);
14574
+ if (message.reference.length !== 0) {
14575
+ writer.uint32(50).bytes(message.reference);
14522
14576
  }
14523
- if (message.mention !== "") {
14524
- writer.uint32(58).string(message.mention);
14577
+ if (message.mention.length !== 0) {
14578
+ writer.uint32(58).bytes(message.mention);
14525
14579
  }
14526
- if (message.reaction !== "") {
14527
- writer.uint32(66).string(message.reaction);
14580
+ if (message.reaction.length !== 0) {
14581
+ writer.uint32(66).bytes(message.reaction);
14528
14582
  }
14529
14583
  return writer;
14530
14584
  },
@@ -14569,28 +14623,28 @@ export const ChannelMessageHeader = {
14569
14623
  break;
14570
14624
  }
14571
14625
 
14572
- message.attachment = reader.string();
14626
+ message.attachment = reader.bytes();
14573
14627
  continue;
14574
14628
  case 6:
14575
14629
  if (tag !== 50) {
14576
14630
  break;
14577
14631
  }
14578
14632
 
14579
- message.reference = reader.string();
14633
+ message.reference = reader.bytes();
14580
14634
  continue;
14581
14635
  case 7:
14582
14636
  if (tag !== 58) {
14583
14637
  break;
14584
14638
  }
14585
14639
 
14586
- message.mention = reader.string();
14640
+ message.mention = reader.bytes();
14587
14641
  continue;
14588
14642
  case 8:
14589
14643
  if (tag !== 66) {
14590
14644
  break;
14591
14645
  }
14592
14646
 
14593
- message.reaction = reader.string();
14647
+ message.reaction = reader.bytes();
14594
14648
  continue;
14595
14649
  }
14596
14650
  if ((tag & 7) === 4 || tag === 0) {
@@ -14607,10 +14661,10 @@ export const ChannelMessageHeader = {
14607
14661
  timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
14608
14662
  sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
14609
14663
  content: isSet(object.content) ? globalThis.String(object.content) : "",
14610
- attachment: isSet(object.attachment) ? globalThis.String(object.attachment) : "",
14611
- reference: isSet(object.reference) ? globalThis.String(object.reference) : "",
14612
- mention: isSet(object.mention) ? globalThis.String(object.mention) : "",
14613
- reaction: isSet(object.reaction) ? globalThis.String(object.reaction) : "",
14664
+ attachment: isSet(object.attachment) ? bytesFromBase64(object.attachment) : new Uint8Array(0),
14665
+ reference: isSet(object.reference) ? bytesFromBase64(object.reference) : new Uint8Array(0),
14666
+ mention: isSet(object.mention) ? bytesFromBase64(object.mention) : new Uint8Array(0),
14667
+ reaction: isSet(object.reaction) ? bytesFromBase64(object.reaction) : new Uint8Array(0),
14614
14668
  };
14615
14669
  },
14616
14670
 
@@ -14628,17 +14682,17 @@ export const ChannelMessageHeader = {
14628
14682
  if (message.content !== "") {
14629
14683
  obj.content = message.content;
14630
14684
  }
14631
- if (message.attachment !== "") {
14632
- obj.attachment = message.attachment;
14685
+ if (message.attachment.length !== 0) {
14686
+ obj.attachment = base64FromBytes(message.attachment);
14633
14687
  }
14634
- if (message.reference !== "") {
14635
- obj.reference = message.reference;
14688
+ if (message.reference.length !== 0) {
14689
+ obj.reference = base64FromBytes(message.reference);
14636
14690
  }
14637
- if (message.mention !== "") {
14638
- obj.mention = message.mention;
14691
+ if (message.mention.length !== 0) {
14692
+ obj.mention = base64FromBytes(message.mention);
14639
14693
  }
14640
- if (message.reaction !== "") {
14641
- obj.reaction = message.reaction;
14694
+ if (message.reaction.length !== 0) {
14695
+ obj.reaction = base64FromBytes(message.reaction);
14642
14696
  }
14643
14697
  return obj;
14644
14698
  },
@@ -14652,10 +14706,10 @@ export const ChannelMessageHeader = {
14652
14706
  message.timestamp_seconds = object.timestamp_seconds ?? 0;
14653
14707
  message.sender_id = object.sender_id ?? "";
14654
14708
  message.content = object.content ?? "";
14655
- message.attachment = object.attachment ?? "";
14656
- message.reference = object.reference ?? "";
14657
- message.mention = object.mention ?? "";
14658
- message.reaction = object.reaction ?? "";
14709
+ message.attachment = object.attachment ?? new Uint8Array(0);
14710
+ message.reference = object.reference ?? new Uint8Array(0);
14711
+ message.mention = object.mention ?? new Uint8Array(0);
14712
+ message.reaction = object.reaction ?? new Uint8Array(0);
14659
14713
  return message;
14660
14714
  },
14661
14715
  };
@@ -15226,11 +15280,72 @@ export const ChannelDescription = {
15226
15280
  };
15227
15281
 
15228
15282
  function createBaseChannelDescList(): ChannelDescList {
15229
- return { channeldesc: [], page: 0 };
15283
+ return { channeldesc: [] };
15230
15284
  }
15231
15285
 
15232
15286
  export const ChannelDescList = {
15233
15287
  encode(message: ChannelDescList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
15288
+ for (const v of message.channeldesc) {
15289
+ ChannelDescription.encode(v!, writer.uint32(10).fork()).ldelim();
15290
+ }
15291
+ return writer;
15292
+ },
15293
+
15294
+ decode(input: _m0.Reader | Uint8Array, length?: number): ChannelDescList {
15295
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
15296
+ let end = length === undefined ? reader.len : reader.pos + length;
15297
+ const message = createBaseChannelDescList();
15298
+ while (reader.pos < end) {
15299
+ const tag = reader.uint32();
15300
+ switch (tag >>> 3) {
15301
+ case 1:
15302
+ if (tag !== 10) {
15303
+ break;
15304
+ }
15305
+
15306
+ message.channeldesc.push(ChannelDescription.decode(reader, reader.uint32()));
15307
+ continue;
15308
+ }
15309
+ if ((tag & 7) === 4 || tag === 0) {
15310
+ break;
15311
+ }
15312
+ reader.skipType(tag & 7);
15313
+ }
15314
+ return message;
15315
+ },
15316
+
15317
+ fromJSON(object: any): ChannelDescList {
15318
+ return {
15319
+ channeldesc: globalThis.Array.isArray(object?.channeldesc)
15320
+ ? object.channeldesc.map((e: any) => ChannelDescription.fromJSON(e))
15321
+ : [],
15322
+ };
15323
+ },
15324
+
15325
+ toJSON(message: ChannelDescList): unknown {
15326
+ const obj: any = {};
15327
+ if (message.channeldesc?.length) {
15328
+ obj.channeldesc = message.channeldesc.map((e) => ChannelDescription.toJSON(e));
15329
+ }
15330
+ return obj;
15331
+ },
15332
+
15333
+ create<I extends Exact<DeepPartial<ChannelDescList>, I>>(base?: I): ChannelDescList {
15334
+ return ChannelDescList.fromPartial(base ?? ({} as any));
15335
+ },
15336
+ fromPartial<I extends Exact<DeepPartial<ChannelDescList>, I>>(object: I): ChannelDescList {
15337
+ const message = createBaseChannelDescList();
15338
+ message.channeldesc = object.channeldesc?.map((e) => ChannelDescription.fromPartial(e)) || [];
15339
+ return message;
15340
+ },
15341
+ };
15342
+
15343
+ function createBaseChannelDescListNoPool(): ChannelDescListNoPool {
15344
+ return { channeldesc: [], page: 0 };
15345
+ }
15346
+
15347
+ export const ChannelDescListNoPool = {
15348
+ encode(message: ChannelDescListNoPool, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
15234
15349
  for (const v of message.channeldesc) {
15235
15350
  ChannelDescription.encode(v!, writer.uint32(10).fork()).ldelim();
15236
15351
  }
@@ -15240,10 +15355,10 @@ export const ChannelDescList = {
15240
15355
  return writer;
15241
15356
  },
15242
15357
 
15243
- decode(input: _m0.Reader | Uint8Array, length?: number): ChannelDescList {
15358
+ decode(input: _m0.Reader | Uint8Array, length?: number): ChannelDescListNoPool {
15244
15359
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
15245
15360
  let end = length === undefined ? reader.len : reader.pos + length;
15246
- const message = createBaseChannelDescList();
15361
+ const message = createBaseChannelDescListNoPool();
15247
15362
  while (reader.pos < end) {
15248
15363
  const tag = reader.uint32();
15249
15364
  switch (tag >>> 3) {
@@ -15270,7 +15385,7 @@ export const ChannelDescList = {
15270
15385
  return message;
15271
15386
  },
15272
15387
 
15273
- fromJSON(object: any): ChannelDescList {
15388
+ fromJSON(object: any): ChannelDescListNoPool {
15274
15389
  return {
15275
15390
  channeldesc: globalThis.Array.isArray(object?.channeldesc)
15276
15391
  ? object.channeldesc.map((e: any) => ChannelDescription.fromJSON(e))
@@ -15279,7 +15394,7 @@ export const ChannelDescList = {
15279
15394
  };
15280
15395
  },
15281
15396
 
15282
- toJSON(message: ChannelDescList): unknown {
15397
+ toJSON(message: ChannelDescListNoPool): unknown {
15283
15398
  const obj: any = {};
15284
15399
  if (message.channeldesc?.length) {
15285
15400
  obj.channeldesc = message.channeldesc.map((e) => ChannelDescription.toJSON(e));
@@ -15290,11 +15405,11 @@ export const ChannelDescList = {
15290
15405
  return obj;
15291
15406
  },
15292
15407
 
15293
- create<I extends Exact<DeepPartial<ChannelDescList>, I>>(base?: I): ChannelDescList {
15294
- return ChannelDescList.fromPartial(base ?? ({} as any));
15408
+ create<I extends Exact<DeepPartial<ChannelDescListNoPool>, I>>(base?: I): ChannelDescListNoPool {
15409
+ return ChannelDescListNoPool.fromPartial(base ?? ({} as any));
15295
15410
  },
15296
- fromPartial<I extends Exact<DeepPartial<ChannelDescList>, I>>(object: I): ChannelDescList {
15297
- const message = createBaseChannelDescList();
15411
+ fromPartial<I extends Exact<DeepPartial<ChannelDescListNoPool>, I>>(object: I): ChannelDescListNoPool {
15412
+ const message = createBaseChannelDescListNoPool();
15298
15413
  message.channeldesc = object.channeldesc?.map((e) => ChannelDescription.fromPartial(e)) || [];
15299
15414
  message.page = object.page ?? 0;
15300
15415
  return message;
@@ -37366,10 +37481,10 @@ function createBaseMessage2InboxRequest(): Message2InboxRequest {
37366
37481
  clan_id: "",
37367
37482
  avatar: "",
37368
37483
  content: "",
37369
- mentions: "",
37370
- attachments: "",
37371
- reactions: "",
37372
- references: "",
37484
+ mentions: new Uint8Array(0),
37485
+ attachments: new Uint8Array(0),
37486
+ reactions: new Uint8Array(0),
37487
+ references: new Uint8Array(0),
37373
37488
  };
37374
37489
  }
37375
37490
 
@@ -37390,17 +37505,17 @@ export const Message2InboxRequest = {
37390
37505
  if (message.content !== "") {
37391
37506
  writer.uint32(42).string(message.content);
37392
37507
  }
37393
- if (message.mentions !== "") {
37394
- writer.uint32(50).string(message.mentions);
37508
+ if (message.mentions.length !== 0) {
37509
+ writer.uint32(50).bytes(message.mentions);
37395
37510
  }
37396
- if (message.attachments !== "") {
37397
- writer.uint32(58).string(message.attachments);
37511
+ if (message.attachments.length !== 0) {
37512
+ writer.uint32(58).bytes(message.attachments);
37398
37513
  }
37399
- if (message.reactions !== "") {
37400
- writer.uint32(66).string(message.reactions);
37514
+ if (message.reactions.length !== 0) {
37515
+ writer.uint32(66).bytes(message.reactions);
37401
37516
  }
37402
- if (message.references !== "") {
37403
- writer.uint32(74).string(message.references);
37517
+ if (message.references.length !== 0) {
37518
+ writer.uint32(74).bytes(message.references);
37404
37519
  }
37405
37520
  return writer;
37406
37521
  },
@@ -37452,28 +37567,28 @@ export const Message2InboxRequest = {
37452
37567
  break;
37453
37568
  }
37454
37569
 
37455
- message.mentions = reader.string();
37570
+ message.mentions = reader.bytes();
37456
37571
  continue;
37457
37572
  case 7:
37458
37573
  if (tag !== 58) {
37459
37574
  break;
37460
37575
  }
37461
37576
 
37462
- message.attachments = reader.string();
37577
+ message.attachments = reader.bytes();
37463
37578
  continue;
37464
37579
  case 8:
37465
37580
  if (tag !== 66) {
37466
37581
  break;
37467
37582
  }
37468
37583
 
37469
- message.reactions = reader.string();
37584
+ message.reactions = reader.bytes();
37470
37585
  continue;
37471
37586
  case 9:
37472
37587
  if (tag !== 74) {
37473
37588
  break;
37474
37589
  }
37475
37590
 
37476
- message.references = reader.string();
37591
+ message.references = reader.bytes();
37477
37592
  continue;
37478
37593
  }
37479
37594
  if ((tag & 7) === 4 || tag === 0) {
@@ -37491,10 +37606,10 @@ export const Message2InboxRequest = {
37491
37606
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
37492
37607
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
37493
37608
  content: isSet(object.content) ? globalThis.String(object.content) : "",
37494
- mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
37495
- attachments: isSet(object.attachments) ? globalThis.String(object.attachments) : "",
37496
- reactions: isSet(object.reactions) ? globalThis.String(object.reactions) : "",
37497
- references: isSet(object.references) ? globalThis.String(object.references) : "",
37609
+ mentions: isSet(object.mentions) ? bytesFromBase64(object.mentions) : new Uint8Array(0),
37610
+ attachments: isSet(object.attachments) ? bytesFromBase64(object.attachments) : new Uint8Array(0),
37611
+ reactions: isSet(object.reactions) ? bytesFromBase64(object.reactions) : new Uint8Array(0),
37612
+ references: isSet(object.references) ? bytesFromBase64(object.references) : new Uint8Array(0),
37498
37613
  };
37499
37614
  },
37500
37615
 
@@ -37515,17 +37630,17 @@ export const Message2InboxRequest = {
37515
37630
  if (message.content !== "") {
37516
37631
  obj.content = message.content;
37517
37632
  }
37518
- if (message.mentions !== "") {
37519
- obj.mentions = message.mentions;
37633
+ if (message.mentions.length !== 0) {
37634
+ obj.mentions = base64FromBytes(message.mentions);
37520
37635
  }
37521
- if (message.attachments !== "") {
37522
- obj.attachments = message.attachments;
37636
+ if (message.attachments.length !== 0) {
37637
+ obj.attachments = base64FromBytes(message.attachments);
37523
37638
  }
37524
- if (message.reactions !== "") {
37525
- obj.reactions = message.reactions;
37639
+ if (message.reactions.length !== 0) {
37640
+ obj.reactions = base64FromBytes(message.reactions);
37526
37641
  }
37527
- if (message.references !== "") {
37528
- obj.references = message.references;
37642
+ if (message.references.length !== 0) {
37643
+ obj.references = base64FromBytes(message.references);
37529
37644
  }
37530
37645
  return obj;
37531
37646
  },
@@ -37540,10 +37655,10 @@ export const Message2InboxRequest = {
37540
37655
  message.clan_id = object.clan_id ?? "";
37541
37656
  message.avatar = object.avatar ?? "";
37542
37657
  message.content = object.content ?? "";
37543
- message.mentions = object.mentions ?? "";
37544
- message.attachments = object.attachments ?? "";
37545
- message.reactions = object.reactions ?? "";
37546
- message.references = object.references ?? "";
37658
+ message.mentions = object.mentions ?? new Uint8Array(0);
37659
+ message.attachments = object.attachments ?? new Uint8Array(0);
37660
+ message.reactions = object.reactions ?? new Uint8Array(0);
37661
+ message.references = object.references ?? new Uint8Array(0);
37547
37662
  return message;
37548
37663
  },
37549
37664
  };
@@ -39102,6 +39217,438 @@ export const LogedDevice = {
39102
39217
  },
39103
39218
  };
39104
39219
 
39220
+ function createBaseDirectFcmProto(): DirectFcmProto {
39221
+ return {
39222
+ title: "",
39223
+ link: "",
39224
+ content: "",
39225
+ channel_id: "",
39226
+ sender_id: "",
39227
+ avatar: "",
39228
+ clan_id: "",
39229
+ attachments: new Uint8Array(0),
39230
+ display_name: "",
39231
+ create_time_seconds: 0,
39232
+ update_time_seconds: 0,
39233
+ username: "",
39234
+ mentions: new Uint8Array(0),
39235
+ };
39236
+ }
39237
+
39238
+ export const DirectFcmProto = {
39239
+ encode(message: DirectFcmProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
39240
+ if (message.title !== "") {
39241
+ writer.uint32(10).string(message.title);
39242
+ }
39243
+ if (message.link !== "") {
39244
+ writer.uint32(18).string(message.link);
39245
+ }
39246
+ if (message.content !== "") {
39247
+ writer.uint32(26).string(message.content);
39248
+ }
39249
+ if (message.channel_id !== "") {
39250
+ writer.uint32(34).string(message.channel_id);
39251
+ }
39252
+ if (message.sender_id !== "") {
39253
+ writer.uint32(42).string(message.sender_id);
39254
+ }
39255
+ if (message.avatar !== "") {
39256
+ writer.uint32(50).string(message.avatar);
39257
+ }
39258
+ if (message.clan_id !== "") {
39259
+ writer.uint32(58).string(message.clan_id);
39260
+ }
39261
+ if (message.attachments.length !== 0) {
39262
+ writer.uint32(66).bytes(message.attachments);
39263
+ }
39264
+ if (message.display_name !== "") {
39265
+ writer.uint32(74).string(message.display_name);
39266
+ }
39267
+ if (message.create_time_seconds !== 0) {
39268
+ writer.uint32(80).int32(message.create_time_seconds);
39269
+ }
39270
+ if (message.update_time_seconds !== 0) {
39271
+ writer.uint32(88).int32(message.update_time_seconds);
39272
+ }
39273
+ if (message.username !== "") {
39274
+ writer.uint32(98).string(message.username);
39275
+ }
39276
+ if (message.mentions.length !== 0) {
39277
+ writer.uint32(106).bytes(message.mentions);
39278
+ }
39279
+ return writer;
39280
+ },
39281
+
39282
+ decode(input: _m0.Reader | Uint8Array, length?: number): DirectFcmProto {
39283
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
39284
+ let end = length === undefined ? reader.len : reader.pos + length;
39285
+ const message = createBaseDirectFcmProto();
39286
+ while (reader.pos < end) {
39287
+ const tag = reader.uint32();
39288
+ switch (tag >>> 3) {
39289
+ case 1:
39290
+ if (tag !== 10) {
39291
+ break;
39292
+ }
39293
+
39294
+ message.title = reader.string();
39295
+ continue;
39296
+ case 2:
39297
+ if (tag !== 18) {
39298
+ break;
39299
+ }
39300
+
39301
+ message.link = reader.string();
39302
+ continue;
39303
+ case 3:
39304
+ if (tag !== 26) {
39305
+ break;
39306
+ }
39307
+
39308
+ message.content = reader.string();
39309
+ continue;
39310
+ case 4:
39311
+ if (tag !== 34) {
39312
+ break;
39313
+ }
39314
+
39315
+ message.channel_id = reader.string();
39316
+ continue;
39317
+ case 5:
39318
+ if (tag !== 42) {
39319
+ break;
39320
+ }
39321
+
39322
+ message.sender_id = reader.string();
39323
+ continue;
39324
+ case 6:
39325
+ if (tag !== 50) {
39326
+ break;
39327
+ }
39328
+
39329
+ message.avatar = reader.string();
39330
+ continue;
39331
+ case 7:
39332
+ if (tag !== 58) {
39333
+ break;
39334
+ }
39335
+
39336
+ message.clan_id = reader.string();
39337
+ continue;
39338
+ case 8:
39339
+ if (tag !== 66) {
39340
+ break;
39341
+ }
39342
+
39343
+ message.attachments = reader.bytes();
39344
+ continue;
39345
+ case 9:
39346
+ if (tag !== 74) {
39347
+ break;
39348
+ }
39349
+
39350
+ message.display_name = reader.string();
39351
+ continue;
39352
+ case 10:
39353
+ if (tag !== 80) {
39354
+ break;
39355
+ }
39356
+
39357
+ message.create_time_seconds = reader.int32();
39358
+ continue;
39359
+ case 11:
39360
+ if (tag !== 88) {
39361
+ break;
39362
+ }
39363
+
39364
+ message.update_time_seconds = reader.int32();
39365
+ continue;
39366
+ case 12:
39367
+ if (tag !== 98) {
39368
+ break;
39369
+ }
39370
+
39371
+ message.username = reader.string();
39372
+ continue;
39373
+ case 13:
39374
+ if (tag !== 106) {
39375
+ break;
39376
+ }
39377
+
39378
+ message.mentions = reader.bytes();
39379
+ continue;
39380
+ }
39381
+ if ((tag & 7) === 4 || tag === 0) {
39382
+ break;
39383
+ }
39384
+ reader.skipType(tag & 7);
39385
+ }
39386
+ return message;
39387
+ },
39388
+
39389
+ fromJSON(object: any): DirectFcmProto {
39390
+ return {
39391
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
39392
+ link: isSet(object.link) ? globalThis.String(object.link) : "",
39393
+ content: isSet(object.content) ? globalThis.String(object.content) : "",
39394
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
39395
+ sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
39396
+ avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
39397
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
39398
+ attachments: isSet(object.attachments) ? bytesFromBase64(object.attachments) : new Uint8Array(0),
39399
+ display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
39400
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
39401
+ update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
39402
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
39403
+ mentions: isSet(object.mentions) ? bytesFromBase64(object.mentions) : new Uint8Array(0),
39404
+ };
39405
+ },
39406
+
39407
+ toJSON(message: DirectFcmProto): unknown {
39408
+ const obj: any = {};
39409
+ if (message.title !== "") {
39410
+ obj.title = message.title;
39411
+ }
39412
+ if (message.link !== "") {
39413
+ obj.link = message.link;
39414
+ }
39415
+ if (message.content !== "") {
39416
+ obj.content = message.content;
39417
+ }
39418
+ if (message.channel_id !== "") {
39419
+ obj.channel_id = message.channel_id;
39420
+ }
39421
+ if (message.sender_id !== "") {
39422
+ obj.sender_id = message.sender_id;
39423
+ }
39424
+ if (message.avatar !== "") {
39425
+ obj.avatar = message.avatar;
39426
+ }
39427
+ if (message.clan_id !== "") {
39428
+ obj.clan_id = message.clan_id;
39429
+ }
39430
+ if (message.attachments.length !== 0) {
39431
+ obj.attachments = base64FromBytes(message.attachments);
39432
+ }
39433
+ if (message.display_name !== "") {
39434
+ obj.display_name = message.display_name;
39435
+ }
39436
+ if (message.create_time_seconds !== 0) {
39437
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
39438
+ }
39439
+ if (message.update_time_seconds !== 0) {
39440
+ obj.update_time_seconds = Math.round(message.update_time_seconds);
39441
+ }
39442
+ if (message.username !== "") {
39443
+ obj.username = message.username;
39444
+ }
39445
+ if (message.mentions.length !== 0) {
39446
+ obj.mentions = base64FromBytes(message.mentions);
39447
+ }
39448
+ return obj;
39449
+ },
39450
+
39451
+ create<I extends Exact<DeepPartial<DirectFcmProto>, I>>(base?: I): DirectFcmProto {
39452
+ return DirectFcmProto.fromPartial(base ?? ({} as any));
39453
+ },
39454
+ fromPartial<I extends Exact<DeepPartial<DirectFcmProto>, I>>(object: I): DirectFcmProto {
39455
+ const message = createBaseDirectFcmProto();
39456
+ message.title = object.title ?? "";
39457
+ message.link = object.link ?? "";
39458
+ message.content = object.content ?? "";
39459
+ message.channel_id = object.channel_id ?? "";
39460
+ message.sender_id = object.sender_id ?? "";
39461
+ message.avatar = object.avatar ?? "";
39462
+ message.clan_id = object.clan_id ?? "";
39463
+ message.attachments = object.attachments ?? new Uint8Array(0);
39464
+ message.display_name = object.display_name ?? "";
39465
+ message.create_time_seconds = object.create_time_seconds ?? 0;
39466
+ message.update_time_seconds = object.update_time_seconds ?? 0;
39467
+ message.username = object.username ?? "";
39468
+ message.mentions = object.mentions ?? new Uint8Array(0);
39469
+ return message;
39470
+ },
39471
+ };
39472
+
39473
+ function createBaseMessageMentionList(): MessageMentionList {
39474
+ return { mentions: [] };
39475
+ }
39476
+
39477
+ export const MessageMentionList = {
39478
+ encode(message: MessageMentionList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
39479
+ for (const v of message.mentions) {
39480
+ MessageMention.encode(v!, writer.uint32(10).fork()).ldelim();
39481
+ }
39482
+ return writer;
39483
+ },
39484
+
39485
+ decode(input: _m0.Reader | Uint8Array, length?: number): MessageMentionList {
39486
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
39487
+ let end = length === undefined ? reader.len : reader.pos + length;
39488
+ const message = createBaseMessageMentionList();
39489
+ while (reader.pos < end) {
39490
+ const tag = reader.uint32();
39491
+ switch (tag >>> 3) {
39492
+ case 1:
39493
+ if (tag !== 10) {
39494
+ break;
39495
+ }
39496
+
39497
+ message.mentions.push(MessageMention.decode(reader, reader.uint32()));
39498
+ continue;
39499
+ }
39500
+ if ((tag & 7) === 4 || tag === 0) {
39501
+ break;
39502
+ }
39503
+ reader.skipType(tag & 7);
39504
+ }
39505
+ return message;
39506
+ },
39507
+
39508
+ fromJSON(object: any): MessageMentionList {
39509
+ return {
39510
+ mentions: globalThis.Array.isArray(object?.mentions)
39511
+ ? object.mentions.map((e: any) => MessageMention.fromJSON(e))
39512
+ : [],
39513
+ };
39514
+ },
39515
+
39516
+ toJSON(message: MessageMentionList): unknown {
39517
+ const obj: any = {};
39518
+ if (message.mentions?.length) {
39519
+ obj.mentions = message.mentions.map((e) => MessageMention.toJSON(e));
39520
+ }
39521
+ return obj;
39522
+ },
39523
+
39524
+ create<I extends Exact<DeepPartial<MessageMentionList>, I>>(base?: I): MessageMentionList {
39525
+ return MessageMentionList.fromPartial(base ?? ({} as any));
39526
+ },
39527
+ fromPartial<I extends Exact<DeepPartial<MessageMentionList>, I>>(object: I): MessageMentionList {
39528
+ const message = createBaseMessageMentionList();
39529
+ message.mentions = object.mentions?.map((e) => MessageMention.fromPartial(e)) || [];
39530
+ return message;
39531
+ },
39532
+ };
39533
+
39534
+ function createBaseMessageAttachmentList(): MessageAttachmentList {
39535
+ return { attachments: [] };
39536
+ }
39537
+
39538
+ export const MessageAttachmentList = {
39539
+ encode(message: MessageAttachmentList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
39540
+ for (const v of message.attachments) {
39541
+ MessageAttachment.encode(v!, writer.uint32(10).fork()).ldelim();
39542
+ }
39543
+ return writer;
39544
+ },
39545
+
39546
+ decode(input: _m0.Reader | Uint8Array, length?: number): MessageAttachmentList {
39547
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
39548
+ let end = length === undefined ? reader.len : reader.pos + length;
39549
+ const message = createBaseMessageAttachmentList();
39550
+ while (reader.pos < end) {
39551
+ const tag = reader.uint32();
39552
+ switch (tag >>> 3) {
39553
+ case 1:
39554
+ if (tag !== 10) {
39555
+ break;
39556
+ }
39557
+
39558
+ message.attachments.push(MessageAttachment.decode(reader, reader.uint32()));
39559
+ continue;
39560
+ }
39561
+ if ((tag & 7) === 4 || tag === 0) {
39562
+ break;
39563
+ }
39564
+ reader.skipType(tag & 7);
39565
+ }
39566
+ return message;
39567
+ },
39568
+
39569
+ fromJSON(object: any): MessageAttachmentList {
39570
+ return {
39571
+ attachments: globalThis.Array.isArray(object?.attachments)
39572
+ ? object.attachments.map((e: any) => MessageAttachment.fromJSON(e))
39573
+ : [],
39574
+ };
39575
+ },
39576
+
39577
+ toJSON(message: MessageAttachmentList): unknown {
39578
+ const obj: any = {};
39579
+ if (message.attachments?.length) {
39580
+ obj.attachments = message.attachments.map((e) => MessageAttachment.toJSON(e));
39581
+ }
39582
+ return obj;
39583
+ },
39584
+
39585
+ create<I extends Exact<DeepPartial<MessageAttachmentList>, I>>(base?: I): MessageAttachmentList {
39586
+ return MessageAttachmentList.fromPartial(base ?? ({} as any));
39587
+ },
39588
+ fromPartial<I extends Exact<DeepPartial<MessageAttachmentList>, I>>(object: I): MessageAttachmentList {
39589
+ const message = createBaseMessageAttachmentList();
39590
+ message.attachments = object.attachments?.map((e) => MessageAttachment.fromPartial(e)) || [];
39591
+ return message;
39592
+ },
39593
+ };
39594
+
39595
+ function createBaseMessageRefList(): MessageRefList {
39596
+ return { refs: [] };
39597
+ }
39598
+
39599
+ export const MessageRefList = {
39600
+ encode(message: MessageRefList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
39601
+ for (const v of message.refs) {
39602
+ MessageRef.encode(v!, writer.uint32(10).fork()).ldelim();
39603
+ }
39604
+ return writer;
39605
+ },
39606
+
39607
+ decode(input: _m0.Reader | Uint8Array, length?: number): MessageRefList {
39608
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
39609
+ let end = length === undefined ? reader.len : reader.pos + length;
39610
+ const message = createBaseMessageRefList();
39611
+ while (reader.pos < end) {
39612
+ const tag = reader.uint32();
39613
+ switch (tag >>> 3) {
39614
+ case 1:
39615
+ if (tag !== 10) {
39616
+ break;
39617
+ }
39618
+
39619
+ message.refs.push(MessageRef.decode(reader, reader.uint32()));
39620
+ continue;
39621
+ }
39622
+ if ((tag & 7) === 4 || tag === 0) {
39623
+ break;
39624
+ }
39625
+ reader.skipType(tag & 7);
39626
+ }
39627
+ return message;
39628
+ },
39629
+
39630
+ fromJSON(object: any): MessageRefList {
39631
+ return { refs: globalThis.Array.isArray(object?.refs) ? object.refs.map((e: any) => MessageRef.fromJSON(e)) : [] };
39632
+ },
39633
+
39634
+ toJSON(message: MessageRefList): unknown {
39635
+ const obj: any = {};
39636
+ if (message.refs?.length) {
39637
+ obj.refs = message.refs.map((e) => MessageRef.toJSON(e));
39638
+ }
39639
+ return obj;
39640
+ },
39641
+
39642
+ create<I extends Exact<DeepPartial<MessageRefList>, I>>(base?: I): MessageRefList {
39643
+ return MessageRefList.fromPartial(base ?? ({} as any));
39644
+ },
39645
+ fromPartial<I extends Exact<DeepPartial<MessageRefList>, I>>(object: I): MessageRefList {
39646
+ const message = createBaseMessageRefList();
39647
+ message.refs = object.refs?.map((e) => MessageRef.fromPartial(e)) || [];
39648
+ return message;
39649
+ },
39650
+ };
39651
+
39105
39652
  function bytesFromBase64(b64: string): Uint8Array {
39106
39653
  if ((globalThis as any).Buffer) {
39107
39654
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));