mezon-js-protobuf 1.4.80 → 1.4.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
@@ -565,6 +565,10 @@ export interface MessageMention {
565
565
  user_id: string;
566
566
  /** mention username */
567
567
  username: string;
568
+ /** role id */
569
+ role_id: string;
570
+ /** role name */
571
+ rolename: string;
568
572
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
569
573
  create_time: Date | undefined;
570
574
  }
@@ -584,7 +588,7 @@ export interface NotificationInfo {
584
588
  /** channel label */
585
589
  channel_label: string;
586
590
  /** channel type */
587
- channel_type: string;
591
+ channel_type: number;
588
592
  /** category name */
589
593
  category_name: string;
590
594
  /** clan name */
@@ -1241,7 +1245,7 @@ export interface Notification {
1241
1245
  /** ID of channel */
1242
1246
  channel_id: string;
1243
1247
  /** mode of */
1244
- channel_type: string;
1248
+ channel_type: number;
1245
1249
  /** */
1246
1250
  avatar_url: string;
1247
1251
  }
@@ -5668,7 +5672,7 @@ export const ChannelMessage = {
5668
5672
  };
5669
5673
 
5670
5674
  function createBaseMessageMention(): MessageMention {
5671
- return { id: "", user_id: "", username: "", create_time: undefined };
5675
+ return { id: "", user_id: "", username: "", role_id: "", rolename: "", create_time: undefined };
5672
5676
  }
5673
5677
 
5674
5678
  export const MessageMention = {
@@ -5682,8 +5686,14 @@ export const MessageMention = {
5682
5686
  if (message.username !== "") {
5683
5687
  writer.uint32(26).string(message.username);
5684
5688
  }
5689
+ if (message.role_id !== "") {
5690
+ writer.uint32(34).string(message.role_id);
5691
+ }
5692
+ if (message.rolename !== "") {
5693
+ writer.uint32(42).string(message.rolename);
5694
+ }
5685
5695
  if (message.create_time !== undefined) {
5686
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(34).fork()).ldelim();
5696
+ Timestamp.encode(toTimestamp(message.create_time), writer.uint32(50).fork()).ldelim();
5687
5697
  }
5688
5698
  return writer;
5689
5699
  },
@@ -5705,6 +5715,12 @@ export const MessageMention = {
5705
5715
  message.username = reader.string();
5706
5716
  break;
5707
5717
  case 4:
5718
+ message.role_id = reader.string();
5719
+ break;
5720
+ case 5:
5721
+ message.rolename = reader.string();
5722
+ break;
5723
+ case 6:
5708
5724
  message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
5709
5725
  break;
5710
5726
  default:
@@ -5720,6 +5736,8 @@ export const MessageMention = {
5720
5736
  id: isSet(object.id) ? String(object.id) : "",
5721
5737
  user_id: isSet(object.user_id) ? String(object.user_id) : "",
5722
5738
  username: isSet(object.username) ? String(object.username) : "",
5739
+ role_id: isSet(object.role_id) ? String(object.role_id) : "",
5740
+ rolename: isSet(object.rolename) ? String(object.rolename) : "",
5723
5741
  create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
5724
5742
  };
5725
5743
  },
@@ -5729,6 +5747,8 @@ export const MessageMention = {
5729
5747
  message.id !== undefined && (obj.id = message.id);
5730
5748
  message.user_id !== undefined && (obj.user_id = message.user_id);
5731
5749
  message.username !== undefined && (obj.username = message.username);
5750
+ message.role_id !== undefined && (obj.role_id = message.role_id);
5751
+ message.rolename !== undefined && (obj.rolename = message.rolename);
5732
5752
  message.create_time !== undefined && (obj.create_time = message.create_time.toISOString());
5733
5753
  return obj;
5734
5754
  },
@@ -5742,6 +5762,8 @@ export const MessageMention = {
5742
5762
  message.id = object.id ?? "";
5743
5763
  message.user_id = object.user_id ?? "";
5744
5764
  message.username = object.username ?? "";
5765
+ message.role_id = object.role_id ?? "";
5766
+ message.rolename = object.rolename ?? "";
5745
5767
  message.create_time = object.create_time ?? undefined;
5746
5768
  return message;
5747
5769
  },
@@ -5755,7 +5777,7 @@ function createBaseNotificationInfo(): NotificationInfo {
5755
5777
  clan_avatar: "",
5756
5778
  display_name: "",
5757
5779
  channel_label: "",
5758
- channel_type: "",
5780
+ channel_type: 0,
5759
5781
  category_name: "",
5760
5782
  clan_name: "",
5761
5783
  clan_logo: "",
@@ -5782,8 +5804,8 @@ export const NotificationInfo = {
5782
5804
  if (message.channel_label !== "") {
5783
5805
  writer.uint32(50).string(message.channel_label);
5784
5806
  }
5785
- if (message.channel_type !== "") {
5786
- writer.uint32(58).string(message.channel_type);
5807
+ if (message.channel_type !== 0) {
5808
+ writer.uint32(56).int32(message.channel_type);
5787
5809
  }
5788
5810
  if (message.category_name !== "") {
5789
5811
  writer.uint32(66).string(message.category_name);
@@ -5823,7 +5845,7 @@ export const NotificationInfo = {
5823
5845
  message.channel_label = reader.string();
5824
5846
  break;
5825
5847
  case 7:
5826
- message.channel_type = reader.string();
5848
+ message.channel_type = reader.int32();
5827
5849
  break;
5828
5850
  case 8:
5829
5851
  message.category_name = reader.string();
@@ -5850,7 +5872,7 @@ export const NotificationInfo = {
5850
5872
  clan_avatar: isSet(object.clan_avatar) ? String(object.clan_avatar) : "",
5851
5873
  display_name: isSet(object.display_name) ? String(object.display_name) : "",
5852
5874
  channel_label: isSet(object.channel_label) ? String(object.channel_label) : "",
5853
- channel_type: isSet(object.channel_type) ? String(object.channel_type) : "",
5875
+ channel_type: isSet(object.channel_type) ? Number(object.channel_type) : 0,
5854
5876
  category_name: isSet(object.category_name) ? String(object.category_name) : "",
5855
5877
  clan_name: isSet(object.clan_name) ? String(object.clan_name) : "",
5856
5878
  clan_logo: isSet(object.clan_logo) ? String(object.clan_logo) : "",
@@ -5865,7 +5887,7 @@ export const NotificationInfo = {
5865
5887
  message.clan_avatar !== undefined && (obj.clan_avatar = message.clan_avatar);
5866
5888
  message.display_name !== undefined && (obj.display_name = message.display_name);
5867
5889
  message.channel_label !== undefined && (obj.channel_label = message.channel_label);
5868
- message.channel_type !== undefined && (obj.channel_type = message.channel_type);
5890
+ message.channel_type !== undefined && (obj.channel_type = Math.round(message.channel_type));
5869
5891
  message.category_name !== undefined && (obj.category_name = message.category_name);
5870
5892
  message.clan_name !== undefined && (obj.clan_name = message.clan_name);
5871
5893
  message.clan_logo !== undefined && (obj.clan_logo = message.clan_logo);
@@ -5884,7 +5906,7 @@ export const NotificationInfo = {
5884
5906
  message.clan_avatar = object.clan_avatar ?? "";
5885
5907
  message.display_name = object.display_name ?? "";
5886
5908
  message.channel_label = object.channel_label ?? "";
5887
- message.channel_type = object.channel_type ?? "";
5909
+ message.channel_type = object.channel_type ?? 0;
5888
5910
  message.category_name = object.category_name ?? "";
5889
5911
  message.clan_name = object.clan_name ?? "";
5890
5912
  message.clan_logo = object.clan_logo ?? "";
@@ -9297,7 +9319,7 @@ function createBaseNotification(): Notification {
9297
9319
  persistent: false,
9298
9320
  clan_id: "",
9299
9321
  channel_id: "",
9300
- channel_type: "",
9322
+ channel_type: 0,
9301
9323
  avatar_url: "",
9302
9324
  };
9303
9325
  }
@@ -9331,8 +9353,8 @@ export const Notification = {
9331
9353
  if (message.channel_id !== "") {
9332
9354
  writer.uint32(74).string(message.channel_id);
9333
9355
  }
9334
- if (message.channel_type !== "") {
9335
- writer.uint32(82).string(message.channel_type);
9356
+ if (message.channel_type !== 0) {
9357
+ writer.uint32(80).int32(message.channel_type);
9336
9358
  }
9337
9359
  if (message.avatar_url !== "") {
9338
9360
  writer.uint32(90).string(message.avatar_url);
@@ -9375,7 +9397,7 @@ export const Notification = {
9375
9397
  message.channel_id = reader.string();
9376
9398
  break;
9377
9399
  case 10:
9378
- message.channel_type = reader.string();
9400
+ message.channel_type = reader.int32();
9379
9401
  break;
9380
9402
  case 11:
9381
9403
  message.avatar_url = reader.string();
@@ -9399,7 +9421,7 @@ export const Notification = {
9399
9421
  persistent: isSet(object.persistent) ? Boolean(object.persistent) : false,
9400
9422
  clan_id: isSet(object.clan_id) ? String(object.clan_id) : "",
9401
9423
  channel_id: isSet(object.channel_id) ? String(object.channel_id) : "",
9402
- channel_type: isSet(object.channel_type) ? String(object.channel_type) : "",
9424
+ channel_type: isSet(object.channel_type) ? Number(object.channel_type) : 0,
9403
9425
  avatar_url: isSet(object.avatar_url) ? String(object.avatar_url) : "",
9404
9426
  };
9405
9427
  },
@@ -9415,7 +9437,7 @@ export const Notification = {
9415
9437
  message.persistent !== undefined && (obj.persistent = message.persistent);
9416
9438
  message.clan_id !== undefined && (obj.clan_id = message.clan_id);
9417
9439
  message.channel_id !== undefined && (obj.channel_id = message.channel_id);
9418
- message.channel_type !== undefined && (obj.channel_type = message.channel_type);
9440
+ message.channel_type !== undefined && (obj.channel_type = Math.round(message.channel_type));
9419
9441
  message.avatar_url !== undefined && (obj.avatar_url = message.avatar_url);
9420
9442
  return obj;
9421
9443
  },
@@ -9435,7 +9457,7 @@ export const Notification = {
9435
9457
  message.persistent = object.persistent ?? false;
9436
9458
  message.clan_id = object.clan_id ?? "";
9437
9459
  message.channel_id = object.channel_id ?? "";
9438
- message.channel_type = object.channel_type ?? "";
9460
+ message.channel_type = object.channel_type ?? 0;
9439
9461
  message.avatar_url = object.avatar_url ?? "";
9440
9462
  return message;
9441
9463
  },
@@ -388,6 +388,10 @@ export interface MessageMention {
388
388
  user_id: string;
389
389
  /** mention username */
390
390
  username: string;
391
+ /** role id */
392
+ role_id: string;
393
+ /** role name */
394
+ rolename: string;
391
395
  /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
392
396
  create_time: Date | undefined;
393
397
  }
@@ -406,7 +410,7 @@ export interface NotificationInfo {
406
410
  /** channel label */
407
411
  channel_label: string;
408
412
  /** channel type */
409
- channel_type: string;
413
+ channel_type: number;
410
414
  /** category name */
411
415
  category_name: string;
412
416
  /** clan name */
@@ -892,7 +896,7 @@ export interface Notification {
892
896
  /** ID of channel */
893
897
  channel_id: string;
894
898
  /** mode of */
895
- channel_type: string;
899
+ channel_type: number;
896
900
  /** */
897
901
  avatar_url: string;
898
902
  }
@@ -3673,22 +3677,30 @@ export declare const MessageMention: {
3673
3677
  id?: string | undefined;
3674
3678
  user_id?: string | undefined;
3675
3679
  username?: string | undefined;
3680
+ role_id?: string | undefined;
3681
+ rolename?: string | undefined;
3676
3682
  create_time?: Date | undefined;
3677
3683
  } & {
3678
3684
  id?: string | undefined;
3679
3685
  user_id?: string | undefined;
3680
3686
  username?: string | undefined;
3687
+ role_id?: string | undefined;
3688
+ rolename?: string | undefined;
3681
3689
  create_time?: Date | undefined;
3682
3690
  } & { [K in Exclude<keyof I, keyof MessageMention>]: never; }>(base?: I | undefined): MessageMention;
3683
3691
  fromPartial<I_1 extends {
3684
3692
  id?: string | undefined;
3685
3693
  user_id?: string | undefined;
3686
3694
  username?: string | undefined;
3695
+ role_id?: string | undefined;
3696
+ rolename?: string | undefined;
3687
3697
  create_time?: Date | undefined;
3688
3698
  } & {
3689
3699
  id?: string | undefined;
3690
3700
  user_id?: string | undefined;
3691
3701
  username?: string | undefined;
3702
+ role_id?: string | undefined;
3703
+ rolename?: string | undefined;
3692
3704
  create_time?: Date | undefined;
3693
3705
  } & { [K_1 in Exclude<keyof I_1, keyof MessageMention>]: never; }>(object: I_1): MessageMention;
3694
3706
  };
@@ -3704,7 +3716,7 @@ export declare const NotificationInfo: {
3704
3716
  clan_avatar?: string | undefined;
3705
3717
  display_name?: string | undefined;
3706
3718
  channel_label?: string | undefined;
3707
- channel_type?: string | undefined;
3719
+ channel_type?: number | undefined;
3708
3720
  category_name?: string | undefined;
3709
3721
  clan_name?: string | undefined;
3710
3722
  clan_logo?: string | undefined;
@@ -3715,7 +3727,7 @@ export declare const NotificationInfo: {
3715
3727
  clan_avatar?: string | undefined;
3716
3728
  display_name?: string | undefined;
3717
3729
  channel_label?: string | undefined;
3718
- channel_type?: string | undefined;
3730
+ channel_type?: number | undefined;
3719
3731
  category_name?: string | undefined;
3720
3732
  clan_name?: string | undefined;
3721
3733
  clan_logo?: string | undefined;
@@ -3727,7 +3739,7 @@ export declare const NotificationInfo: {
3727
3739
  clan_avatar?: string | undefined;
3728
3740
  display_name?: string | undefined;
3729
3741
  channel_label?: string | undefined;
3730
- channel_type?: string | undefined;
3742
+ channel_type?: number | undefined;
3731
3743
  category_name?: string | undefined;
3732
3744
  clan_name?: string | undefined;
3733
3745
  clan_logo?: string | undefined;
@@ -3738,7 +3750,7 @@ export declare const NotificationInfo: {
3738
3750
  clan_avatar?: string | undefined;
3739
3751
  display_name?: string | undefined;
3740
3752
  channel_label?: string | undefined;
3741
- channel_type?: string | undefined;
3753
+ channel_type?: number | undefined;
3742
3754
  category_name?: string | undefined;
3743
3755
  clan_name?: string | undefined;
3744
3756
  clan_logo?: string | undefined;
@@ -7215,7 +7227,7 @@ export declare const Notification: {
7215
7227
  persistent?: boolean | undefined;
7216
7228
  clan_id?: string | undefined;
7217
7229
  channel_id?: string | undefined;
7218
- channel_type?: string | undefined;
7230
+ channel_type?: number | undefined;
7219
7231
  avatar_url?: string | undefined;
7220
7232
  } & {
7221
7233
  id?: string | undefined;
@@ -7227,7 +7239,7 @@ export declare const Notification: {
7227
7239
  persistent?: boolean | undefined;
7228
7240
  clan_id?: string | undefined;
7229
7241
  channel_id?: string | undefined;
7230
- channel_type?: string | undefined;
7242
+ channel_type?: number | undefined;
7231
7243
  avatar_url?: string | undefined;
7232
7244
  } & { [K in Exclude<keyof I, keyof Notification>]: never; }>(base?: I | undefined): Notification;
7233
7245
  fromPartial<I_1 extends {
@@ -7240,7 +7252,7 @@ export declare const Notification: {
7240
7252
  persistent?: boolean | undefined;
7241
7253
  clan_id?: string | undefined;
7242
7254
  channel_id?: string | undefined;
7243
- channel_type?: string | undefined;
7255
+ channel_type?: number | undefined;
7244
7256
  avatar_url?: string | undefined;
7245
7257
  } & {
7246
7258
  id?: string | undefined;
@@ -7252,7 +7264,7 @@ export declare const Notification: {
7252
7264
  persistent?: boolean | undefined;
7253
7265
  clan_id?: string | undefined;
7254
7266
  channel_id?: string | undefined;
7255
- channel_type?: string | undefined;
7267
+ channel_type?: number | undefined;
7256
7268
  avatar_url?: string | undefined;
7257
7269
  } & { [K_1 in Exclude<keyof I_1, keyof Notification>]: never; }>(object: I_1): Notification;
7258
7270
  };
@@ -7272,7 +7284,7 @@ export declare const NotificationList: {
7272
7284
  persistent?: boolean | undefined;
7273
7285
  clan_id?: string | undefined;
7274
7286
  channel_id?: string | undefined;
7275
- channel_type?: string | undefined;
7287
+ channel_type?: number | undefined;
7276
7288
  avatar_url?: string | undefined;
7277
7289
  }[] | undefined;
7278
7290
  cacheable_cursor?: string | undefined;
@@ -7287,7 +7299,7 @@ export declare const NotificationList: {
7287
7299
  persistent?: boolean | undefined;
7288
7300
  clan_id?: string | undefined;
7289
7301
  channel_id?: string | undefined;
7290
- channel_type?: string | undefined;
7302
+ channel_type?: number | undefined;
7291
7303
  avatar_url?: string | undefined;
7292
7304
  }[] & ({
7293
7305
  id?: string | undefined;
@@ -7299,7 +7311,7 @@ export declare const NotificationList: {
7299
7311
  persistent?: boolean | undefined;
7300
7312
  clan_id?: string | undefined;
7301
7313
  channel_id?: string | undefined;
7302
- channel_type?: string | undefined;
7314
+ channel_type?: number | undefined;
7303
7315
  avatar_url?: string | undefined;
7304
7316
  } & {
7305
7317
  id?: string | undefined;
@@ -7311,7 +7323,7 @@ export declare const NotificationList: {
7311
7323
  persistent?: boolean | undefined;
7312
7324
  clan_id?: string | undefined;
7313
7325
  channel_id?: string | undefined;
7314
- channel_type?: string | undefined;
7326
+ channel_type?: number | undefined;
7315
7327
  avatar_url?: string | undefined;
7316
7328
  } & { [K in Exclude<keyof I["notifications"][number], keyof Notification>]: never; })[] & { [K_1 in Exclude<keyof I["notifications"], keyof {
7317
7329
  id?: string | undefined;
@@ -7323,7 +7335,7 @@ export declare const NotificationList: {
7323
7335
  persistent?: boolean | undefined;
7324
7336
  clan_id?: string | undefined;
7325
7337
  channel_id?: string | undefined;
7326
- channel_type?: string | undefined;
7338
+ channel_type?: number | undefined;
7327
7339
  avatar_url?: string | undefined;
7328
7340
  }[]>]: never; }) | undefined;
7329
7341
  cacheable_cursor?: string | undefined;
@@ -7339,7 +7351,7 @@ export declare const NotificationList: {
7339
7351
  persistent?: boolean | undefined;
7340
7352
  clan_id?: string | undefined;
7341
7353
  channel_id?: string | undefined;
7342
- channel_type?: string | undefined;
7354
+ channel_type?: number | undefined;
7343
7355
  avatar_url?: string | undefined;
7344
7356
  }[] | undefined;
7345
7357
  cacheable_cursor?: string | undefined;
@@ -7354,7 +7366,7 @@ export declare const NotificationList: {
7354
7366
  persistent?: boolean | undefined;
7355
7367
  clan_id?: string | undefined;
7356
7368
  channel_id?: string | undefined;
7357
- channel_type?: string | undefined;
7369
+ channel_type?: number | undefined;
7358
7370
  avatar_url?: string | undefined;
7359
7371
  }[] & ({
7360
7372
  id?: string | undefined;
@@ -7366,7 +7378,7 @@ export declare const NotificationList: {
7366
7378
  persistent?: boolean | undefined;
7367
7379
  clan_id?: string | undefined;
7368
7380
  channel_id?: string | undefined;
7369
- channel_type?: string | undefined;
7381
+ channel_type?: number | undefined;
7370
7382
  avatar_url?: string | undefined;
7371
7383
  } & {
7372
7384
  id?: string | undefined;
@@ -7378,7 +7390,7 @@ export declare const NotificationList: {
7378
7390
  persistent?: boolean | undefined;
7379
7391
  clan_id?: string | undefined;
7380
7392
  channel_id?: string | undefined;
7381
- channel_type?: string | undefined;
7393
+ channel_type?: number | undefined;
7382
7394
  avatar_url?: string | undefined;
7383
7395
  } & { [K_3 in Exclude<keyof I_1["notifications"][number], keyof Notification>]: never; })[] & { [K_4 in Exclude<keyof I_1["notifications"], keyof {
7384
7396
  id?: string | undefined;
@@ -7390,7 +7402,7 @@ export declare const NotificationList: {
7390
7402
  persistent?: boolean | undefined;
7391
7403
  clan_id?: string | undefined;
7392
7404
  channel_id?: string | undefined;
7393
- channel_type?: string | undefined;
7405
+ channel_type?: number | undefined;
7394
7406
  avatar_url?: string | undefined;
7395
7407
  }[]>]: never; }) | undefined;
7396
7408
  cacheable_cursor?: string | undefined;