mezon-js-protobuf 1.8.79 → 1.8.81

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
@@ -346,7 +346,7 @@ export interface MessageMention {
346
346
  /** role name */
347
347
  rolename: string;
348
348
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
349
- create_time_second: number;
349
+ create_time_seconds: number;
350
350
  /** start position from text */
351
351
  s: number;
352
352
  /** end position from text */
@@ -1615,9 +1615,7 @@ export interface CreateChannelDescRequest {
1615
1615
  /** The category of channel */
1616
1616
  category_id: string;
1617
1617
  /** The channel type. */
1618
- type:
1619
- | number
1620
- | undefined;
1618
+ type: number;
1621
1619
  /** The channel lable */
1622
1620
  channel_label: string;
1623
1621
  /** The channel private */
@@ -1841,7 +1839,7 @@ export interface PinMessage {
1841
1839
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
1842
1840
  create_time_seconds: number;
1843
1841
  /** attachment */
1844
- attachment: string;
1842
+ attachment: Uint8Array;
1845
1843
  }
1846
1844
 
1847
1845
  export interface PinMessagesList {
@@ -3118,7 +3116,7 @@ export interface LoginIDResponse {
3118
3116
  /** status login */
3119
3117
  status: number;
3120
3118
  /** create time */
3121
- create_time_second: number;
3119
+ create_time_seconds: number;
3122
3120
  /** platform */
3123
3121
  platform: string;
3124
3122
  /** user_id */
@@ -3478,7 +3476,7 @@ export interface SdTopic {
3478
3476
  status: number;
3479
3477
  create_time_seconds: number;
3480
3478
  update_time_seconds: number;
3481
- message: ChannelMessage | undefined;
3479
+ content: string;
3482
3480
  last_sent_message: ChannelMessageHeader | undefined;
3483
3481
  }
3484
3482
 
@@ -3742,12 +3740,16 @@ export interface DirectFcmProto {
3742
3740
  sender_id: string;
3743
3741
  avatar: string;
3744
3742
  clan_id: string;
3745
- attachments: Uint8Array;
3743
+ attachment_link: string;
3746
3744
  display_name: string;
3747
3745
  create_time_seconds: number;
3748
3746
  update_time_seconds: number;
3749
3747
  username: string;
3750
- mentions: Uint8Array;
3748
+ mention_ids: string[];
3749
+ position_s: number[];
3750
+ positiin_e: number[];
3751
+ attachment_type: string;
3752
+ has_more_attachment: boolean;
3751
3753
  }
3752
3754
 
3753
3755
  export interface MessageMentionList {
@@ -5388,7 +5390,7 @@ export const ChannelMessage = {
5388
5390
  };
5389
5391
 
5390
5392
  function createBaseMessageMention(): MessageMention {
5391
- return { id: "", user_id: "", username: "", role_id: "", rolename: "", create_time_second: 0, s: 0, e: 0 };
5393
+ return { id: "", user_id: "", username: "", role_id: "", rolename: "", create_time_seconds: 0, s: 0, e: 0 };
5392
5394
  }
5393
5395
 
5394
5396
  export const MessageMention = {
@@ -5408,8 +5410,8 @@ export const MessageMention = {
5408
5410
  if (message.rolename !== "") {
5409
5411
  writer.uint32(42).string(message.rolename);
5410
5412
  }
5411
- if (message.create_time_second !== 0) {
5412
- writer.uint32(48).uint32(message.create_time_second);
5413
+ if (message.create_time_seconds !== 0) {
5414
+ writer.uint32(48).uint32(message.create_time_seconds);
5413
5415
  }
5414
5416
  if (message.s !== 0) {
5415
5417
  writer.uint32(56).int32(message.s);
@@ -5467,7 +5469,7 @@ export const MessageMention = {
5467
5469
  break;
5468
5470
  }
5469
5471
 
5470
- message.create_time_second = reader.uint32();
5472
+ message.create_time_seconds = reader.uint32();
5471
5473
  continue;
5472
5474
  case 7:
5473
5475
  if (tag !== 56) {
@@ -5499,7 +5501,7 @@ export const MessageMention = {
5499
5501
  username: isSet(object.username) ? globalThis.String(object.username) : "",
5500
5502
  role_id: isSet(object.role_id) ? globalThis.String(object.role_id) : "",
5501
5503
  rolename: isSet(object.rolename) ? globalThis.String(object.rolename) : "",
5502
- create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
5504
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
5503
5505
  s: isSet(object.s) ? globalThis.Number(object.s) : 0,
5504
5506
  e: isSet(object.e) ? globalThis.Number(object.e) : 0,
5505
5507
  };
@@ -5522,8 +5524,8 @@ export const MessageMention = {
5522
5524
  if (message.rolename !== "") {
5523
5525
  obj.rolename = message.rolename;
5524
5526
  }
5525
- if (message.create_time_second !== 0) {
5526
- obj.create_time_second = Math.round(message.create_time_second);
5527
+ if (message.create_time_seconds !== 0) {
5528
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
5527
5529
  }
5528
5530
  if (message.s !== 0) {
5529
5531
  obj.s = Math.round(message.s);
@@ -5544,7 +5546,7 @@ export const MessageMention = {
5544
5546
  message.username = object.username ?? "";
5545
5547
  message.role_id = object.role_id ?? "";
5546
5548
  message.rolename = object.rolename ?? "";
5547
- message.create_time_second = object.create_time_second ?? 0;
5549
+ message.create_time_seconds = object.create_time_seconds ?? 0;
5548
5550
  message.s = object.s ?? 0;
5549
5551
  message.e = object.e ?? 0;
5550
5552
  return message;
@@ -15660,7 +15662,7 @@ function createBaseCreateChannelDescRequest(): CreateChannelDescRequest {
15660
15662
  parent_id: "",
15661
15663
  channel_id: "",
15662
15664
  category_id: "",
15663
- type: undefined,
15665
+ type: 0,
15664
15666
  channel_label: "",
15665
15667
  channel_private: 0,
15666
15668
  user_ids: [],
@@ -15682,8 +15684,8 @@ export const CreateChannelDescRequest = {
15682
15684
  if (message.category_id !== "") {
15683
15685
  writer.uint32(34).string(message.category_id);
15684
15686
  }
15685
- if (message.type !== undefined) {
15686
- Int32Value.encode({ value: message.type! }, writer.uint32(42).fork()).ldelim();
15687
+ if (message.type !== 0) {
15688
+ writer.uint32(40).int32(message.type);
15687
15689
  }
15688
15690
  if (message.channel_label !== "") {
15689
15691
  writer.uint32(50).string(message.channel_label);
@@ -15736,11 +15738,11 @@ export const CreateChannelDescRequest = {
15736
15738
  message.category_id = reader.string();
15737
15739
  continue;
15738
15740
  case 5:
15739
- if (tag !== 42) {
15741
+ if (tag !== 40) {
15740
15742
  break;
15741
15743
  }
15742
15744
 
15743
- message.type = Int32Value.decode(reader, reader.uint32()).value;
15745
+ message.type = reader.int32();
15744
15746
  continue;
15745
15747
  case 6:
15746
15748
  if (tag !== 50) {
@@ -15785,7 +15787,7 @@ export const CreateChannelDescRequest = {
15785
15787
  parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
15786
15788
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
15787
15789
  category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
15788
- type: isSet(object.type) ? Number(object.type) : undefined,
15790
+ type: isSet(object.type) ? globalThis.Number(object.type) : 0,
15789
15791
  channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
15790
15792
  channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
15791
15793
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
@@ -15807,8 +15809,8 @@ export const CreateChannelDescRequest = {
15807
15809
  if (message.category_id !== "") {
15808
15810
  obj.category_id = message.category_id;
15809
15811
  }
15810
- if (message.type !== undefined) {
15811
- obj.type = message.type;
15812
+ if (message.type !== 0) {
15813
+ obj.type = Math.round(message.type);
15812
15814
  }
15813
15815
  if (message.channel_label !== "") {
15814
15816
  obj.channel_label = message.channel_label;
@@ -15834,7 +15836,7 @@ export const CreateChannelDescRequest = {
15834
15836
  message.parent_id = object.parent_id ?? "";
15835
15837
  message.channel_id = object.channel_id ?? "";
15836
15838
  message.category_id = object.category_id ?? "";
15837
- message.type = object.type ?? undefined;
15839
+ message.type = object.type ?? 0;
15838
15840
  message.channel_label = object.channel_label ?? "";
15839
15841
  message.channel_private = object.channel_private ?? 0;
15840
15842
  message.user_ids = object.user_ids?.map((e) => e) || [];
@@ -17923,7 +17925,7 @@ function createBasePinMessage(): PinMessage {
17923
17925
  username: "",
17924
17926
  avatar: "",
17925
17927
  create_time_seconds: 0,
17926
- attachment: "",
17928
+ attachment: new Uint8Array(0),
17927
17929
  };
17928
17930
  }
17929
17931
 
@@ -17953,8 +17955,8 @@ export const PinMessage = {
17953
17955
  if (message.create_time_seconds !== 0) {
17954
17956
  writer.uint32(64).uint32(message.create_time_seconds);
17955
17957
  }
17956
- if (message.attachment !== "") {
17957
- writer.uint32(74).string(message.attachment);
17958
+ if (message.attachment.length !== 0) {
17959
+ writer.uint32(74).bytes(message.attachment);
17958
17960
  }
17959
17961
  return writer;
17960
17962
  },
@@ -18027,7 +18029,7 @@ export const PinMessage = {
18027
18029
  break;
18028
18030
  }
18029
18031
 
18030
- message.attachment = reader.string();
18032
+ message.attachment = reader.bytes();
18031
18033
  continue;
18032
18034
  }
18033
18035
  if ((tag & 7) === 4 || tag === 0) {
@@ -18048,7 +18050,7 @@ export const PinMessage = {
18048
18050
  username: isSet(object.username) ? globalThis.String(object.username) : "",
18049
18051
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
18050
18052
  create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
18051
- attachment: isSet(object.attachment) ? globalThis.String(object.attachment) : "",
18053
+ attachment: isSet(object.attachment) ? bytesFromBase64(object.attachment) : new Uint8Array(0),
18052
18054
  };
18053
18055
  },
18054
18056
 
@@ -18078,8 +18080,8 @@ export const PinMessage = {
18078
18080
  if (message.create_time_seconds !== 0) {
18079
18081
  obj.create_time_seconds = Math.round(message.create_time_seconds);
18080
18082
  }
18081
- if (message.attachment !== "") {
18082
- obj.attachment = message.attachment;
18083
+ if (message.attachment.length !== 0) {
18084
+ obj.attachment = base64FromBytes(message.attachment);
18083
18085
  }
18084
18086
  return obj;
18085
18087
  },
@@ -18097,7 +18099,7 @@ export const PinMessage = {
18097
18099
  message.username = object.username ?? "";
18098
18100
  message.avatar = object.avatar ?? "";
18099
18101
  message.create_time_seconds = object.create_time_seconds ?? 0;
18100
- message.attachment = object.attachment ?? "";
18102
+ message.attachment = object.attachment ?? new Uint8Array(0);
18101
18103
  return message;
18102
18104
  },
18103
18105
  };
@@ -31316,7 +31318,7 @@ export const CreateActivityRequest = {
31316
31318
  };
31317
31319
 
31318
31320
  function createBaseLoginIDResponse(): LoginIDResponse {
31319
- return { login_id: "", status: 0, create_time_second: 0, platform: "", user_id: 0, username: "", address: "" };
31321
+ return { login_id: "", status: 0, create_time_seconds: 0, platform: "", user_id: 0, username: "", address: "" };
31320
31322
  }
31321
31323
 
31322
31324
  export const LoginIDResponse = {
@@ -31327,8 +31329,8 @@ export const LoginIDResponse = {
31327
31329
  if (message.status !== 0) {
31328
31330
  writer.uint32(16).int32(message.status);
31329
31331
  }
31330
- if (message.create_time_second !== 0) {
31331
- writer.uint32(24).int64(message.create_time_second);
31332
+ if (message.create_time_seconds !== 0) {
31333
+ writer.uint32(24).int64(message.create_time_seconds);
31332
31334
  }
31333
31335
  if (message.platform !== "") {
31334
31336
  writer.uint32(34).string(message.platform);
@@ -31371,7 +31373,7 @@ export const LoginIDResponse = {
31371
31373
  break;
31372
31374
  }
31373
31375
 
31374
- message.create_time_second = longToNumber(reader.int64() as Long);
31376
+ message.create_time_seconds = longToNumber(reader.int64() as Long);
31375
31377
  continue;
31376
31378
  case 4:
31377
31379
  if (tag !== 34) {
@@ -31414,7 +31416,7 @@ export const LoginIDResponse = {
31414
31416
  return {
31415
31417
  login_id: isSet(object.login_id) ? globalThis.String(object.login_id) : "",
31416
31418
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
31417
- create_time_second: isSet(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
31419
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
31418
31420
  platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
31419
31421
  user_id: isSet(object.user_id) ? globalThis.Number(object.user_id) : 0,
31420
31422
  username: isSet(object.username) ? globalThis.String(object.username) : "",
@@ -31430,8 +31432,8 @@ export const LoginIDResponse = {
31430
31432
  if (message.status !== 0) {
31431
31433
  obj.status = Math.round(message.status);
31432
31434
  }
31433
- if (message.create_time_second !== 0) {
31434
- obj.create_time_second = Math.round(message.create_time_second);
31435
+ if (message.create_time_seconds !== 0) {
31436
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
31435
31437
  }
31436
31438
  if (message.platform !== "") {
31437
31439
  obj.platform = message.platform;
@@ -31455,7 +31457,7 @@ export const LoginIDResponse = {
31455
31457
  const message = createBaseLoginIDResponse();
31456
31458
  message.login_id = object.login_id ?? "";
31457
31459
  message.status = object.status ?? 0;
31458
- message.create_time_second = object.create_time_second ?? 0;
31460
+ message.create_time_seconds = object.create_time_seconds ?? 0;
31459
31461
  message.platform = object.platform ?? "";
31460
31462
  message.user_id = object.user_id ?? 0;
31461
31463
  message.username = object.username ?? "";
@@ -35085,7 +35087,7 @@ function createBaseSdTopic(): SdTopic {
35085
35087
  status: 0,
35086
35088
  create_time_seconds: 0,
35087
35089
  update_time_seconds: 0,
35088
- message: undefined,
35090
+ content: "",
35089
35091
  last_sent_message: undefined,
35090
35092
  };
35091
35093
  }
@@ -35116,8 +35118,8 @@ export const SdTopic = {
35116
35118
  if (message.update_time_seconds !== 0) {
35117
35119
  writer.uint32(64).uint32(message.update_time_seconds);
35118
35120
  }
35119
- if (message.message !== undefined) {
35120
- ChannelMessage.encode(message.message, writer.uint32(74).fork()).ldelim();
35121
+ if (message.content !== "") {
35122
+ writer.uint32(74).string(message.content);
35121
35123
  }
35122
35124
  if (message.last_sent_message !== undefined) {
35123
35125
  ChannelMessageHeader.encode(message.last_sent_message, writer.uint32(82).fork()).ldelim();
@@ -35193,7 +35195,7 @@ export const SdTopic = {
35193
35195
  break;
35194
35196
  }
35195
35197
 
35196
- message.message = ChannelMessage.decode(reader, reader.uint32());
35198
+ message.content = reader.string();
35197
35199
  continue;
35198
35200
  case 10:
35199
35201
  if (tag !== 82) {
@@ -35221,7 +35223,7 @@ export const SdTopic = {
35221
35223
  status: isSet(object.status) ? globalThis.Number(object.status) : 0,
35222
35224
  create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
35223
35225
  update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
35224
- message: isSet(object.message) ? ChannelMessage.fromJSON(object.message) : undefined,
35226
+ content: isSet(object.content) ? globalThis.String(object.content) : "",
35225
35227
  last_sent_message: isSet(object.last_sent_message)
35226
35228
  ? ChannelMessageHeader.fromJSON(object.last_sent_message)
35227
35229
  : undefined,
@@ -35254,8 +35256,8 @@ export const SdTopic = {
35254
35256
  if (message.update_time_seconds !== 0) {
35255
35257
  obj.update_time_seconds = Math.round(message.update_time_seconds);
35256
35258
  }
35257
- if (message.message !== undefined) {
35258
- obj.message = ChannelMessage.toJSON(message.message);
35259
+ if (message.content !== "") {
35260
+ obj.content = message.content;
35259
35261
  }
35260
35262
  if (message.last_sent_message !== undefined) {
35261
35263
  obj.last_sent_message = ChannelMessageHeader.toJSON(message.last_sent_message);
@@ -35276,9 +35278,7 @@ export const SdTopic = {
35276
35278
  message.status = object.status ?? 0;
35277
35279
  message.create_time_seconds = object.create_time_seconds ?? 0;
35278
35280
  message.update_time_seconds = object.update_time_seconds ?? 0;
35279
- message.message = (object.message !== undefined && object.message !== null)
35280
- ? ChannelMessage.fromPartial(object.message)
35281
- : undefined;
35281
+ message.content = object.content ?? "";
35282
35282
  message.last_sent_message = (object.last_sent_message !== undefined && object.last_sent_message !== null)
35283
35283
  ? ChannelMessageHeader.fromPartial(object.last_sent_message)
35284
35284
  : undefined;
@@ -39049,12 +39049,16 @@ function createBaseDirectFcmProto(): DirectFcmProto {
39049
39049
  sender_id: "",
39050
39050
  avatar: "",
39051
39051
  clan_id: "",
39052
- attachments: new Uint8Array(0),
39052
+ attachment_link: "",
39053
39053
  display_name: "",
39054
39054
  create_time_seconds: 0,
39055
39055
  update_time_seconds: 0,
39056
39056
  username: "",
39057
- mentions: new Uint8Array(0),
39057
+ mention_ids: [],
39058
+ position_s: [],
39059
+ positiin_e: [],
39060
+ attachment_type: "",
39061
+ has_more_attachment: false,
39058
39062
  };
39059
39063
  }
39060
39064
 
@@ -39081,8 +39085,8 @@ export const DirectFcmProto = {
39081
39085
  if (message.clan_id !== "") {
39082
39086
  writer.uint32(58).string(message.clan_id);
39083
39087
  }
39084
- if (message.attachments.length !== 0) {
39085
- writer.uint32(66).bytes(message.attachments);
39088
+ if (message.attachment_link !== "") {
39089
+ writer.uint32(66).string(message.attachment_link);
39086
39090
  }
39087
39091
  if (message.display_name !== "") {
39088
39092
  writer.uint32(74).string(message.display_name);
@@ -39096,8 +39100,24 @@ export const DirectFcmProto = {
39096
39100
  if (message.username !== "") {
39097
39101
  writer.uint32(98).string(message.username);
39098
39102
  }
39099
- if (message.mentions.length !== 0) {
39100
- writer.uint32(106).bytes(message.mentions);
39103
+ for (const v of message.mention_ids) {
39104
+ writer.uint32(106).string(v!);
39105
+ }
39106
+ writer.uint32(114).fork();
39107
+ for (const v of message.position_s) {
39108
+ writer.int32(v);
39109
+ }
39110
+ writer.ldelim();
39111
+ writer.uint32(122).fork();
39112
+ for (const v of message.positiin_e) {
39113
+ writer.int32(v);
39114
+ }
39115
+ writer.ldelim();
39116
+ if (message.attachment_type !== "") {
39117
+ writer.uint32(130).string(message.attachment_type);
39118
+ }
39119
+ if (message.has_more_attachment !== false) {
39120
+ writer.uint32(136).bool(message.has_more_attachment);
39101
39121
  }
39102
39122
  return writer;
39103
39123
  },
@@ -39163,7 +39183,7 @@ export const DirectFcmProto = {
39163
39183
  break;
39164
39184
  }
39165
39185
 
39166
- message.attachments = reader.bytes();
39186
+ message.attachment_link = reader.string();
39167
39187
  continue;
39168
39188
  case 9:
39169
39189
  if (tag !== 74) {
@@ -39198,7 +39218,55 @@ export const DirectFcmProto = {
39198
39218
  break;
39199
39219
  }
39200
39220
 
39201
- message.mentions = reader.bytes();
39221
+ message.mention_ids.push(reader.string());
39222
+ continue;
39223
+ case 14:
39224
+ if (tag === 112) {
39225
+ message.position_s.push(reader.int32());
39226
+
39227
+ continue;
39228
+ }
39229
+
39230
+ if (tag === 114) {
39231
+ const end2 = reader.uint32() + reader.pos;
39232
+ while (reader.pos < end2) {
39233
+ message.position_s.push(reader.int32());
39234
+ }
39235
+
39236
+ continue;
39237
+ }
39238
+
39239
+ break;
39240
+ case 15:
39241
+ if (tag === 120) {
39242
+ message.positiin_e.push(reader.int32());
39243
+
39244
+ continue;
39245
+ }
39246
+
39247
+ if (tag === 122) {
39248
+ const end2 = reader.uint32() + reader.pos;
39249
+ while (reader.pos < end2) {
39250
+ message.positiin_e.push(reader.int32());
39251
+ }
39252
+
39253
+ continue;
39254
+ }
39255
+
39256
+ break;
39257
+ case 16:
39258
+ if (tag !== 130) {
39259
+ break;
39260
+ }
39261
+
39262
+ message.attachment_type = reader.string();
39263
+ continue;
39264
+ case 17:
39265
+ if (tag !== 136) {
39266
+ break;
39267
+ }
39268
+
39269
+ message.has_more_attachment = reader.bool();
39202
39270
  continue;
39203
39271
  }
39204
39272
  if ((tag & 7) === 4 || tag === 0) {
@@ -39218,12 +39286,22 @@ export const DirectFcmProto = {
39218
39286
  sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
39219
39287
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
39220
39288
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
39221
- attachments: isSet(object.attachments) ? bytesFromBase64(object.attachments) : new Uint8Array(0),
39289
+ attachment_link: isSet(object.attachment_link) ? globalThis.String(object.attachment_link) : "",
39222
39290
  display_name: isSet(object.display_name) ? globalThis.String(object.display_name) : "",
39223
39291
  create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
39224
39292
  update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
39225
39293
  username: isSet(object.username) ? globalThis.String(object.username) : "",
39226
- mentions: isSet(object.mentions) ? bytesFromBase64(object.mentions) : new Uint8Array(0),
39294
+ mention_ids: globalThis.Array.isArray(object?.mention_ids)
39295
+ ? object.mention_ids.map((e: any) => globalThis.String(e))
39296
+ : [],
39297
+ position_s: globalThis.Array.isArray(object?.position_s)
39298
+ ? object.position_s.map((e: any) => globalThis.Number(e))
39299
+ : [],
39300
+ positiin_e: globalThis.Array.isArray(object?.positiin_e)
39301
+ ? object.positiin_e.map((e: any) => globalThis.Number(e))
39302
+ : [],
39303
+ attachment_type: isSet(object.attachment_type) ? globalThis.String(object.attachment_type) : "",
39304
+ has_more_attachment: isSet(object.has_more_attachment) ? globalThis.Boolean(object.has_more_attachment) : false,
39227
39305
  };
39228
39306
  },
39229
39307
 
@@ -39250,8 +39328,8 @@ export const DirectFcmProto = {
39250
39328
  if (message.clan_id !== "") {
39251
39329
  obj.clan_id = message.clan_id;
39252
39330
  }
39253
- if (message.attachments.length !== 0) {
39254
- obj.attachments = base64FromBytes(message.attachments);
39331
+ if (message.attachment_link !== "") {
39332
+ obj.attachment_link = message.attachment_link;
39255
39333
  }
39256
39334
  if (message.display_name !== "") {
39257
39335
  obj.display_name = message.display_name;
@@ -39265,8 +39343,20 @@ export const DirectFcmProto = {
39265
39343
  if (message.username !== "") {
39266
39344
  obj.username = message.username;
39267
39345
  }
39268
- if (message.mentions.length !== 0) {
39269
- obj.mentions = base64FromBytes(message.mentions);
39346
+ if (message.mention_ids?.length) {
39347
+ obj.mention_ids = message.mention_ids;
39348
+ }
39349
+ if (message.position_s?.length) {
39350
+ obj.position_s = message.position_s.map((e) => Math.round(e));
39351
+ }
39352
+ if (message.positiin_e?.length) {
39353
+ obj.positiin_e = message.positiin_e.map((e) => Math.round(e));
39354
+ }
39355
+ if (message.attachment_type !== "") {
39356
+ obj.attachment_type = message.attachment_type;
39357
+ }
39358
+ if (message.has_more_attachment !== false) {
39359
+ obj.has_more_attachment = message.has_more_attachment;
39270
39360
  }
39271
39361
  return obj;
39272
39362
  },
@@ -39283,12 +39373,16 @@ export const DirectFcmProto = {
39283
39373
  message.sender_id = object.sender_id ?? "";
39284
39374
  message.avatar = object.avatar ?? "";
39285
39375
  message.clan_id = object.clan_id ?? "";
39286
- message.attachments = object.attachments ?? new Uint8Array(0);
39376
+ message.attachment_link = object.attachment_link ?? "";
39287
39377
  message.display_name = object.display_name ?? "";
39288
39378
  message.create_time_seconds = object.create_time_seconds ?? 0;
39289
39379
  message.update_time_seconds = object.update_time_seconds ?? 0;
39290
39380
  message.username = object.username ?? "";
39291
- message.mentions = object.mentions ?? new Uint8Array(0);
39381
+ message.mention_ids = object.mention_ids?.map((e) => e) || [];
39382
+ message.position_s = object.position_s?.map((e) => e) || [];
39383
+ message.positiin_e = object.positiin_e?.map((e) => e) || [];
39384
+ message.attachment_type = object.attachment_type ?? "";
39385
+ message.has_more_attachment = object.has_more_attachment ?? false;
39292
39386
  return message;
39293
39387
  },
39294
39388
  };