mezon-js-protobuf 1.8.76 → 1.8.78

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
@@ -302,14 +302,6 @@ export interface ChannelMessage {
302
302
  avatar: string;
303
303
  /** The content payload. */
304
304
  content: string;
305
- /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created. */
306
- create_time:
307
- | Date
308
- | undefined;
309
- /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated. */
310
- update_time:
311
- | Date
312
- | undefined;
313
305
  /** The name of the chat room, or an empty string if this message was not sent through a chat room. */
314
306
  channel_label: string;
315
307
  /** The clan logo */
@@ -699,10 +691,8 @@ export interface ChannelAttachment {
699
691
  url: string;
700
692
  /** uploader */
701
693
  uploader: string;
702
- /** The UNIX time (for gRPC clients) or ISO string (for REST clients) when the group was created. */
703
- create_time:
704
- | Date
705
- | undefined;
694
+ /** timestamp */
695
+ create_time_seconds: number;
706
696
  /** message id. */
707
697
  message_id: string;
708
698
  /** width */
@@ -862,13 +852,9 @@ export interface ListChannelAttachmentRequest {
862
852
  /** The channel type */
863
853
  file_type: string;
864
854
  /** Max number of records to return. Between 1 and 100. */
865
- limit:
866
- | number
867
- | undefined;
855
+ limit: number;
868
856
  /** The group user state to list. */
869
- state:
870
- | number
871
- | undefined;
857
+ state: number;
872
858
  /** An optional previous id for page. */
873
859
  before: number;
874
860
  /** An optional next id for page. */
@@ -922,7 +908,7 @@ export interface Notification {
922
908
  /** Subject of the notification. */
923
909
  subject: string;
924
910
  /** Content of the notification in JSON. */
925
- content: string;
911
+ content: Uint8Array;
926
912
  /** Category code for this notification. */
927
913
  code: number;
928
914
  /** ID of the sender, if a user. Otherwise 'null'. */
@@ -1827,10 +1813,10 @@ export interface EventManagement {
1827
1813
  clan_id: string;
1828
1814
  channel_voice_id: string;
1829
1815
  address: string;
1830
- start_time: Date | undefined;
1831
- end_time: Date | undefined;
1816
+ start_time_seconds: number;
1817
+ end_time_seconds: number;
1832
1818
  user_ids: string[];
1833
- create_time: Date | undefined;
1819
+ create_time_seconds: number;
1834
1820
  max_permission: number;
1835
1821
  channel_id: string;
1836
1822
  event_status: number;
@@ -3825,6 +3811,18 @@ export interface MessageRefList {
3825
3811
  refs: MessageRef[];
3826
3812
  }
3827
3813
 
3814
+ export interface MessageReactionList {
3815
+ reactions: MessageReaction[];
3816
+ }
3817
+
3818
+ export interface ListClanBadgeCountRequest {
3819
+ clan_id: string;
3820
+ }
3821
+
3822
+ export interface ListClanBadgeCountResponse {
3823
+ badge_count: number;
3824
+ }
3825
+
3828
3826
  function createBaseAccount(): Account {
3829
3827
  return {
3830
3828
  user: undefined,
@@ -5001,8 +4999,6 @@ function createBaseChannelMessage(): ChannelMessage {
5001
4999
  username: "",
5002
5000
  avatar: "",
5003
5001
  content: "",
5004
- create_time: undefined,
5005
- update_time: undefined,
5006
5002
  channel_label: "",
5007
5003
  clan_logo: "",
5008
5004
  category_name: "",
@@ -5049,62 +5045,56 @@ export const ChannelMessage = {
5049
5045
  if (message.content !== "") {
5050
5046
  writer.uint32(66).string(message.content);
5051
5047
  }
5052
- if (message.create_time !== undefined) {
5053
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(74).fork()).ldelim();
5054
- }
5055
- if (message.update_time !== undefined) {
5056
- Timestamp.encode(toTimestamp(message.update_time), writer.uint32(82).fork()).ldelim();
5057
- }
5058
5048
  if (message.channel_label !== "") {
5059
- writer.uint32(90).string(message.channel_label);
5049
+ writer.uint32(74).string(message.channel_label);
5060
5050
  }
5061
5051
  if (message.clan_logo !== "") {
5062
- writer.uint32(98).string(message.clan_logo);
5052
+ writer.uint32(82).string(message.clan_logo);
5063
5053
  }
5064
5054
  if (message.category_name !== "") {
5065
- writer.uint32(106).string(message.category_name);
5055
+ writer.uint32(90).string(message.category_name);
5066
5056
  }
5067
5057
  if (message.display_name !== "") {
5068
- writer.uint32(114).string(message.display_name);
5058
+ writer.uint32(98).string(message.display_name);
5069
5059
  }
5070
5060
  if (message.clan_nick !== "") {
5071
- writer.uint32(122).string(message.clan_nick);
5061
+ writer.uint32(106).string(message.clan_nick);
5072
5062
  }
5073
5063
  if (message.clan_avatar !== "") {
5074
- writer.uint32(130).string(message.clan_avatar);
5064
+ writer.uint32(114).string(message.clan_avatar);
5075
5065
  }
5076
5066
  if (message.reactions.length !== 0) {
5077
- writer.uint32(138).bytes(message.reactions);
5067
+ writer.uint32(122).bytes(message.reactions);
5078
5068
  }
5079
5069
  if (message.mentions.length !== 0) {
5080
- writer.uint32(146).bytes(message.mentions);
5070
+ writer.uint32(130).bytes(message.mentions);
5081
5071
  }
5082
5072
  if (message.attachments.length !== 0) {
5083
- writer.uint32(154).bytes(message.attachments);
5073
+ writer.uint32(138).bytes(message.attachments);
5084
5074
  }
5085
5075
  if (message.references.length !== 0) {
5086
- writer.uint32(162).bytes(message.references);
5076
+ writer.uint32(146).bytes(message.references);
5087
5077
  }
5088
5078
  if (message.referenced_message.length !== 0) {
5089
- writer.uint32(170).bytes(message.referenced_message);
5079
+ writer.uint32(154).bytes(message.referenced_message);
5090
5080
  }
5091
5081
  if (message.create_time_seconds !== 0) {
5092
- writer.uint32(176).uint32(message.create_time_seconds);
5082
+ writer.uint32(160).uint32(message.create_time_seconds);
5093
5083
  }
5094
5084
  if (message.update_time_seconds !== 0) {
5095
- writer.uint32(184).uint32(message.update_time_seconds);
5085
+ writer.uint32(168).uint32(message.update_time_seconds);
5096
5086
  }
5097
5087
  if (message.mode !== 0) {
5098
- writer.uint32(192).int32(message.mode);
5088
+ writer.uint32(176).int32(message.mode);
5099
5089
  }
5100
5090
  if (message.hide_editted !== false) {
5101
- writer.uint32(200).bool(message.hide_editted);
5091
+ writer.uint32(184).bool(message.hide_editted);
5102
5092
  }
5103
5093
  if (message.is_public !== false) {
5104
- writer.uint32(208).bool(message.is_public);
5094
+ writer.uint32(192).bool(message.is_public);
5105
5095
  }
5106
5096
  if (message.topic_id !== "") {
5107
- writer.uint32(218).string(message.topic_id);
5097
+ writer.uint32(202).string(message.topic_id);
5108
5098
  }
5109
5099
  return writer;
5110
5100
  },
@@ -5177,129 +5167,115 @@ export const ChannelMessage = {
5177
5167
  break;
5178
5168
  }
5179
5169
 
5180
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
5170
+ message.channel_label = reader.string();
5181
5171
  continue;
5182
5172
  case 10:
5183
5173
  if (tag !== 82) {
5184
5174
  break;
5185
5175
  }
5186
5176
 
5187
- message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
5177
+ message.clan_logo = reader.string();
5188
5178
  continue;
5189
5179
  case 11:
5190
5180
  if (tag !== 90) {
5191
5181
  break;
5192
5182
  }
5193
5183
 
5194
- message.channel_label = reader.string();
5184
+ message.category_name = reader.string();
5195
5185
  continue;
5196
5186
  case 12:
5197
5187
  if (tag !== 98) {
5198
5188
  break;
5199
5189
  }
5200
5190
 
5201
- message.clan_logo = reader.string();
5191
+ message.display_name = reader.string();
5202
5192
  continue;
5203
5193
  case 13:
5204
5194
  if (tag !== 106) {
5205
5195
  break;
5206
5196
  }
5207
5197
 
5208
- message.category_name = reader.string();
5198
+ message.clan_nick = reader.string();
5209
5199
  continue;
5210
5200
  case 14:
5211
5201
  if (tag !== 114) {
5212
5202
  break;
5213
5203
  }
5214
5204
 
5215
- message.display_name = reader.string();
5205
+ message.clan_avatar = reader.string();
5216
5206
  continue;
5217
5207
  case 15:
5218
5208
  if (tag !== 122) {
5219
5209
  break;
5220
5210
  }
5221
5211
 
5222
- message.clan_nick = reader.string();
5212
+ message.reactions = reader.bytes();
5223
5213
  continue;
5224
5214
  case 16:
5225
5215
  if (tag !== 130) {
5226
5216
  break;
5227
5217
  }
5228
5218
 
5229
- message.clan_avatar = reader.string();
5219
+ message.mentions = reader.bytes();
5230
5220
  continue;
5231
5221
  case 17:
5232
5222
  if (tag !== 138) {
5233
5223
  break;
5234
5224
  }
5235
5225
 
5236
- message.reactions = reader.bytes();
5226
+ message.attachments = reader.bytes();
5237
5227
  continue;
5238
5228
  case 18:
5239
5229
  if (tag !== 146) {
5240
5230
  break;
5241
5231
  }
5242
5232
 
5243
- message.mentions = reader.bytes();
5233
+ message.references = reader.bytes();
5244
5234
  continue;
5245
5235
  case 19:
5246
5236
  if (tag !== 154) {
5247
5237
  break;
5248
5238
  }
5249
5239
 
5250
- message.attachments = reader.bytes();
5240
+ message.referenced_message = reader.bytes();
5251
5241
  continue;
5252
5242
  case 20:
5253
- if (tag !== 162) {
5243
+ if (tag !== 160) {
5254
5244
  break;
5255
5245
  }
5256
5246
 
5257
- message.references = reader.bytes();
5247
+ message.create_time_seconds = reader.uint32();
5258
5248
  continue;
5259
5249
  case 21:
5260
- if (tag !== 170) {
5250
+ if (tag !== 168) {
5261
5251
  break;
5262
5252
  }
5263
5253
 
5264
- message.referenced_message = reader.bytes();
5254
+ message.update_time_seconds = reader.uint32();
5265
5255
  continue;
5266
5256
  case 22:
5267
5257
  if (tag !== 176) {
5268
5258
  break;
5269
5259
  }
5270
5260
 
5271
- message.create_time_seconds = reader.uint32();
5261
+ message.mode = reader.int32();
5272
5262
  continue;
5273
5263
  case 23:
5274
5264
  if (tag !== 184) {
5275
5265
  break;
5276
5266
  }
5277
5267
 
5278
- message.update_time_seconds = reader.uint32();
5268
+ message.hide_editted = reader.bool();
5279
5269
  continue;
5280
5270
  case 24:
5281
5271
  if (tag !== 192) {
5282
5272
  break;
5283
5273
  }
5284
5274
 
5285
- message.mode = reader.int32();
5286
- continue;
5287
- case 25:
5288
- if (tag !== 200) {
5289
- break;
5290
- }
5291
-
5292
- message.hide_editted = reader.bool();
5293
- continue;
5294
- case 26:
5295
- if (tag !== 208) {
5296
- break;
5297
- }
5298
-
5299
5275
  message.is_public = reader.bool();
5300
5276
  continue;
5301
- case 27:
5302
- if (tag !== 218) {
5277
+ case 25:
5278
+ if (tag !== 202) {
5303
5279
  break;
5304
5280
  }
5305
5281
 
@@ -5324,8 +5300,6 @@ export const ChannelMessage = {
5324
5300
  username: isSet(object.username) ? globalThis.String(object.username) : "",
5325
5301
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
5326
5302
  content: isSet(object.content) ? globalThis.String(object.content) : "",
5327
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
5328
- update_time: isSet(object.update_time) ? fromJsonTimestamp(object.update_time) : undefined,
5329
5303
  channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
5330
5304
  clan_logo: isSet(object.clan_logo) ? globalThis.String(object.clan_logo) : "",
5331
5305
  category_name: isSet(object.category_name) ? globalThis.String(object.category_name) : "",
@@ -5374,12 +5348,6 @@ export const ChannelMessage = {
5374
5348
  if (message.content !== "") {
5375
5349
  obj.content = message.content;
5376
5350
  }
5377
- if (message.create_time !== undefined) {
5378
- obj.create_time = message.create_time.toISOString();
5379
- }
5380
- if (message.update_time !== undefined) {
5381
- obj.update_time = message.update_time.toISOString();
5382
- }
5383
5351
  if (message.channel_label !== "") {
5384
5352
  obj.channel_label = message.channel_label;
5385
5353
  }
@@ -5447,8 +5415,6 @@ export const ChannelMessage = {
5447
5415
  message.username = object.username ?? "";
5448
5416
  message.avatar = object.avatar ?? "";
5449
5417
  message.content = object.content ?? "";
5450
- message.create_time = object.create_time ?? undefined;
5451
- message.update_time = object.update_time ?? undefined;
5452
5418
  message.channel_label = object.channel_label ?? "";
5453
5419
  message.clan_logo = object.clan_logo ?? "";
5454
5420
  message.category_name = object.category_name ?? "";
@@ -7968,7 +7934,7 @@ function createBaseChannelAttachment(): ChannelAttachment {
7968
7934
  filesize: "",
7969
7935
  url: "",
7970
7936
  uploader: "",
7971
- create_time: undefined,
7937
+ create_time_seconds: 0,
7972
7938
  message_id: "",
7973
7939
  width: 0,
7974
7940
  height: 0,
@@ -7995,8 +7961,8 @@ export const ChannelAttachment = {
7995
7961
  if (message.uploader !== "") {
7996
7962
  writer.uint32(50).string(message.uploader);
7997
7963
  }
7998
- if (message.create_time !== undefined) {
7999
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(58).fork()).ldelim();
7964
+ if (message.create_time_seconds !== 0) {
7965
+ writer.uint32(56).uint32(message.create_time_seconds);
8000
7966
  }
8001
7967
  if (message.message_id !== "") {
8002
7968
  writer.uint32(66).string(message.message_id);
@@ -8060,11 +8026,11 @@ export const ChannelAttachment = {
8060
8026
  message.uploader = reader.string();
8061
8027
  continue;
8062
8028
  case 7:
8063
- if (tag !== 58) {
8029
+ if (tag !== 56) {
8064
8030
  break;
8065
8031
  }
8066
8032
 
8067
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
8033
+ message.create_time_seconds = reader.uint32();
8068
8034
  continue;
8069
8035
  case 8:
8070
8036
  if (tag !== 66) {
@@ -8104,7 +8070,7 @@ export const ChannelAttachment = {
8104
8070
  filesize: isSet(object.filesize) ? globalThis.String(object.filesize) : "",
8105
8071
  url: isSet(object.url) ? globalThis.String(object.url) : "",
8106
8072
  uploader: isSet(object.uploader) ? globalThis.String(object.uploader) : "",
8107
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
8073
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
8108
8074
  message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
8109
8075
  width: isSet(object.width) ? globalThis.Number(object.width) : 0,
8110
8076
  height: isSet(object.height) ? globalThis.Number(object.height) : 0,
@@ -8131,8 +8097,8 @@ export const ChannelAttachment = {
8131
8097
  if (message.uploader !== "") {
8132
8098
  obj.uploader = message.uploader;
8133
8099
  }
8134
- if (message.create_time !== undefined) {
8135
- obj.create_time = message.create_time.toISOString();
8100
+ if (message.create_time_seconds !== 0) {
8101
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
8136
8102
  }
8137
8103
  if (message.message_id !== "") {
8138
8104
  obj.message_id = message.message_id;
@@ -8157,7 +8123,7 @@ export const ChannelAttachment = {
8157
8123
  message.filesize = object.filesize ?? "";
8158
8124
  message.url = object.url ?? "";
8159
8125
  message.uploader = object.uploader ?? "";
8160
- message.create_time = object.create_time ?? undefined;
8126
+ message.create_time_seconds = object.create_time_seconds ?? 0;
8161
8127
  message.message_id = object.message_id ?? "";
8162
8128
  message.width = object.width ?? 0;
8163
8129
  message.height = object.height ?? 0;
@@ -9225,16 +9191,7 @@ export const ListChannelUsersRequest = {
9225
9191
  };
9226
9192
 
9227
9193
  function createBaseListChannelAttachmentRequest(): ListChannelAttachmentRequest {
9228
- return {
9229
- clan_id: "",
9230
- channel_id: "",
9231
- file_type: "",
9232
- limit: undefined,
9233
- state: undefined,
9234
- before: 0,
9235
- after: 0,
9236
- around: 0,
9237
- };
9194
+ return { clan_id: "", channel_id: "", file_type: "", limit: 0, state: 0, before: 0, after: 0, around: 0 };
9238
9195
  }
9239
9196
 
9240
9197
  export const ListChannelAttachmentRequest = {
@@ -9248,11 +9205,11 @@ export const ListChannelAttachmentRequest = {
9248
9205
  if (message.file_type !== "") {
9249
9206
  writer.uint32(26).string(message.file_type);
9250
9207
  }
9251
- if (message.limit !== undefined) {
9252
- Int32Value.encode({ value: message.limit! }, writer.uint32(34).fork()).ldelim();
9208
+ if (message.limit !== 0) {
9209
+ writer.uint32(32).int32(message.limit);
9253
9210
  }
9254
- if (message.state !== undefined) {
9255
- Int32Value.encode({ value: message.state! }, writer.uint32(42).fork()).ldelim();
9211
+ if (message.state !== 0) {
9212
+ writer.uint32(40).int32(message.state);
9256
9213
  }
9257
9214
  if (message.before !== 0) {
9258
9215
  writer.uint32(48).uint32(message.before);
@@ -9295,18 +9252,18 @@ export const ListChannelAttachmentRequest = {
9295
9252
  message.file_type = reader.string();
9296
9253
  continue;
9297
9254
  case 4:
9298
- if (tag !== 34) {
9255
+ if (tag !== 32) {
9299
9256
  break;
9300
9257
  }
9301
9258
 
9302
- message.limit = Int32Value.decode(reader, reader.uint32()).value;
9259
+ message.limit = reader.int32();
9303
9260
  continue;
9304
9261
  case 5:
9305
- if (tag !== 42) {
9262
+ if (tag !== 40) {
9306
9263
  break;
9307
9264
  }
9308
9265
 
9309
- message.state = Int32Value.decode(reader, reader.uint32()).value;
9266
+ message.state = reader.int32();
9310
9267
  continue;
9311
9268
  case 6:
9312
9269
  if (tag !== 48) {
@@ -9343,8 +9300,8 @@ export const ListChannelAttachmentRequest = {
9343
9300
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
9344
9301
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
9345
9302
  file_type: isSet(object.file_type) ? globalThis.String(object.file_type) : "",
9346
- limit: isSet(object.limit) ? Number(object.limit) : undefined,
9347
- state: isSet(object.state) ? Number(object.state) : undefined,
9303
+ limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
9304
+ state: isSet(object.state) ? globalThis.Number(object.state) : 0,
9348
9305
  before: isSet(object.before) ? globalThis.Number(object.before) : 0,
9349
9306
  after: isSet(object.after) ? globalThis.Number(object.after) : 0,
9350
9307
  around: isSet(object.around) ? globalThis.Number(object.around) : 0,
@@ -9362,11 +9319,11 @@ export const ListChannelAttachmentRequest = {
9362
9319
  if (message.file_type !== "") {
9363
9320
  obj.file_type = message.file_type;
9364
9321
  }
9365
- if (message.limit !== undefined) {
9366
- obj.limit = message.limit;
9322
+ if (message.limit !== 0) {
9323
+ obj.limit = Math.round(message.limit);
9367
9324
  }
9368
- if (message.state !== undefined) {
9369
- obj.state = message.state;
9325
+ if (message.state !== 0) {
9326
+ obj.state = Math.round(message.state);
9370
9327
  }
9371
9328
  if (message.before !== 0) {
9372
9329
  obj.before = Math.round(message.before);
@@ -9388,8 +9345,8 @@ export const ListChannelAttachmentRequest = {
9388
9345
  message.clan_id = object.clan_id ?? "";
9389
9346
  message.channel_id = object.channel_id ?? "";
9390
9347
  message.file_type = object.file_type ?? "";
9391
- message.limit = object.limit ?? undefined;
9392
- message.state = object.state ?? undefined;
9348
+ message.limit = object.limit ?? 0;
9349
+ message.state = object.state ?? 0;
9393
9350
  message.before = object.before ?? 0;
9394
9351
  message.after = object.after ?? 0;
9395
9352
  message.around = object.around ?? 0;
@@ -9681,7 +9638,7 @@ function createBaseNotification(): Notification {
9681
9638
  return {
9682
9639
  id: "",
9683
9640
  subject: "",
9684
- content: "",
9641
+ content: new Uint8Array(0),
9685
9642
  code: 0,
9686
9643
  sender_id: "",
9687
9644
  create_time: undefined,
@@ -9704,8 +9661,8 @@ export const Notification = {
9704
9661
  if (message.subject !== "") {
9705
9662
  writer.uint32(18).string(message.subject);
9706
9663
  }
9707
- if (message.content !== "") {
9708
- writer.uint32(26).string(message.content);
9664
+ if (message.content.length !== 0) {
9665
+ writer.uint32(26).bytes(message.content);
9709
9666
  }
9710
9667
  if (message.code !== 0) {
9711
9668
  writer.uint32(32).int32(message.code);
@@ -9769,7 +9726,7 @@ export const Notification = {
9769
9726
  break;
9770
9727
  }
9771
9728
 
9772
- message.content = reader.string();
9729
+ message.content = reader.bytes();
9773
9730
  continue;
9774
9731
  case 4:
9775
9732
  if (tag !== 32) {
@@ -9861,7 +9818,7 @@ export const Notification = {
9861
9818
  return {
9862
9819
  id: isSet(object.id) ? globalThis.String(object.id) : "",
9863
9820
  subject: isSet(object.subject) ? globalThis.String(object.subject) : "",
9864
- content: isSet(object.content) ? globalThis.String(object.content) : "",
9821
+ content: isSet(object.content) ? bytesFromBase64(object.content) : new Uint8Array(0),
9865
9822
  code: isSet(object.code) ? globalThis.Number(object.code) : 0,
9866
9823
  sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
9867
9824
  create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
@@ -9884,8 +9841,8 @@ export const Notification = {
9884
9841
  if (message.subject !== "") {
9885
9842
  obj.subject = message.subject;
9886
9843
  }
9887
- if (message.content !== "") {
9888
- obj.content = message.content;
9844
+ if (message.content.length !== 0) {
9845
+ obj.content = base64FromBytes(message.content);
9889
9846
  }
9890
9847
  if (message.code !== 0) {
9891
9848
  obj.code = Math.round(message.code);
@@ -9930,7 +9887,7 @@ export const Notification = {
9930
9887
  const message = createBaseNotification();
9931
9888
  message.id = object.id ?? "";
9932
9889
  message.subject = object.subject ?? "";
9933
- message.content = object.content ?? "";
9890
+ message.content = object.content ?? new Uint8Array(0);
9934
9891
  message.code = object.code ?? 0;
9935
9892
  message.sender_id = object.sender_id ?? "";
9936
9893
  message.create_time = object.create_time ?? undefined;
@@ -17390,10 +17347,10 @@ function createBaseEventManagement(): EventManagement {
17390
17347
  clan_id: "",
17391
17348
  channel_voice_id: "",
17392
17349
  address: "",
17393
- start_time: undefined,
17394
- end_time: undefined,
17350
+ start_time_seconds: 0,
17351
+ end_time_seconds: 0,
17395
17352
  user_ids: [],
17396
- create_time: undefined,
17353
+ create_time_seconds: 0,
17397
17354
  max_permission: 0,
17398
17355
  channel_id: "",
17399
17356
  event_status: 0,
@@ -17435,17 +17392,17 @@ export const EventManagement = {
17435
17392
  if (message.address !== "") {
17436
17393
  writer.uint32(82).string(message.address);
17437
17394
  }
17438
- if (message.start_time !== undefined) {
17439
- Timestamp.encode(toTimestamp(message.start_time), writer.uint32(90).fork()).ldelim();
17395
+ if (message.start_time_seconds !== 0) {
17396
+ writer.uint32(88).uint32(message.start_time_seconds);
17440
17397
  }
17441
- if (message.end_time !== undefined) {
17442
- Timestamp.encode(toTimestamp(message.end_time), writer.uint32(98).fork()).ldelim();
17398
+ if (message.end_time_seconds !== 0) {
17399
+ writer.uint32(96).uint32(message.end_time_seconds);
17443
17400
  }
17444
17401
  for (const v of message.user_ids) {
17445
17402
  writer.uint32(106).string(v!);
17446
17403
  }
17447
- if (message.create_time !== undefined) {
17448
- Timestamp.encode(toTimestamp(message.create_time), writer.uint32(114).fork()).ldelim();
17404
+ if (message.create_time_seconds !== 0) {
17405
+ writer.uint32(112).uint32(message.create_time_seconds);
17449
17406
  }
17450
17407
  if (message.max_permission !== 0) {
17451
17408
  writer.uint32(120).int32(message.max_permission);
@@ -17546,18 +17503,18 @@ export const EventManagement = {
17546
17503
  message.address = reader.string();
17547
17504
  continue;
17548
17505
  case 11:
17549
- if (tag !== 90) {
17506
+ if (tag !== 88) {
17550
17507
  break;
17551
17508
  }
17552
17509
 
17553
- message.start_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
17510
+ message.start_time_seconds = reader.uint32();
17554
17511
  continue;
17555
17512
  case 12:
17556
- if (tag !== 98) {
17513
+ if (tag !== 96) {
17557
17514
  break;
17558
17515
  }
17559
17516
 
17560
- message.end_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
17517
+ message.end_time_seconds = reader.uint32();
17561
17518
  continue;
17562
17519
  case 13:
17563
17520
  if (tag !== 106) {
@@ -17567,11 +17524,11 @@ export const EventManagement = {
17567
17524
  message.user_ids.push(reader.string());
17568
17525
  continue;
17569
17526
  case 14:
17570
- if (tag !== 114) {
17527
+ if (tag !== 112) {
17571
17528
  break;
17572
17529
  }
17573
17530
 
17574
- message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
17531
+ message.create_time_seconds = reader.uint32();
17575
17532
  continue;
17576
17533
  case 15:
17577
17534
  if (tag !== 120) {
@@ -17636,10 +17593,10 @@ export const EventManagement = {
17636
17593
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
17637
17594
  channel_voice_id: isSet(object.channel_voice_id) ? globalThis.String(object.channel_voice_id) : "",
17638
17595
  address: isSet(object.address) ? globalThis.String(object.address) : "",
17639
- start_time: isSet(object.start_time) ? fromJsonTimestamp(object.start_time) : undefined,
17640
- end_time: isSet(object.end_time) ? fromJsonTimestamp(object.end_time) : undefined,
17596
+ start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
17597
+ end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
17641
17598
  user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
17642
- create_time: isSet(object.create_time) ? fromJsonTimestamp(object.create_time) : undefined,
17599
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
17643
17600
  max_permission: isSet(object.max_permission) ? globalThis.Number(object.max_permission) : 0,
17644
17601
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
17645
17602
  event_status: isSet(object.event_status) ? globalThis.Number(object.event_status) : 0,
@@ -17681,17 +17638,17 @@ export const EventManagement = {
17681
17638
  if (message.address !== "") {
17682
17639
  obj.address = message.address;
17683
17640
  }
17684
- if (message.start_time !== undefined) {
17685
- obj.start_time = message.start_time.toISOString();
17641
+ if (message.start_time_seconds !== 0) {
17642
+ obj.start_time_seconds = Math.round(message.start_time_seconds);
17686
17643
  }
17687
- if (message.end_time !== undefined) {
17688
- obj.end_time = message.end_time.toISOString();
17644
+ if (message.end_time_seconds !== 0) {
17645
+ obj.end_time_seconds = Math.round(message.end_time_seconds);
17689
17646
  }
17690
17647
  if (message.user_ids?.length) {
17691
17648
  obj.user_ids = message.user_ids;
17692
17649
  }
17693
- if (message.create_time !== undefined) {
17694
- obj.create_time = message.create_time.toISOString();
17650
+ if (message.create_time_seconds !== 0) {
17651
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
17695
17652
  }
17696
17653
  if (message.max_permission !== 0) {
17697
17654
  obj.max_permission = Math.round(message.max_permission);
@@ -17729,10 +17686,10 @@ export const EventManagement = {
17729
17686
  message.clan_id = object.clan_id ?? "";
17730
17687
  message.channel_voice_id = object.channel_voice_id ?? "";
17731
17688
  message.address = object.address ?? "";
17732
- message.start_time = object.start_time ?? undefined;
17733
- message.end_time = object.end_time ?? undefined;
17689
+ message.start_time_seconds = object.start_time_seconds ?? 0;
17690
+ message.end_time_seconds = object.end_time_seconds ?? 0;
17734
17691
  message.user_ids = object.user_ids?.map((e) => e) || [];
17735
- message.create_time = object.create_time ?? undefined;
17692
+ message.create_time_seconds = object.create_time_seconds ?? 0;
17736
17693
  message.max_permission = object.max_permission ?? 0;
17737
17694
  message.channel_id = object.channel_id ?? "";
17738
17695
  message.event_status = object.event_status ?? 0;
@@ -39649,6 +39606,181 @@ export const MessageRefList = {
39649
39606
  },
39650
39607
  };
39651
39608
 
39609
+ function createBaseMessageReactionList(): MessageReactionList {
39610
+ return { reactions: [] };
39611
+ }
39612
+
39613
+ export const MessageReactionList = {
39614
+ encode(message: MessageReactionList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
39615
+ for (const v of message.reactions) {
39616
+ MessageReaction.encode(v!, writer.uint32(10).fork()).ldelim();
39617
+ }
39618
+ return writer;
39619
+ },
39620
+
39621
+ decode(input: _m0.Reader | Uint8Array, length?: number): MessageReactionList {
39622
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
39623
+ let end = length === undefined ? reader.len : reader.pos + length;
39624
+ const message = createBaseMessageReactionList();
39625
+ while (reader.pos < end) {
39626
+ const tag = reader.uint32();
39627
+ switch (tag >>> 3) {
39628
+ case 1:
39629
+ if (tag !== 10) {
39630
+ break;
39631
+ }
39632
+
39633
+ message.reactions.push(MessageReaction.decode(reader, reader.uint32()));
39634
+ continue;
39635
+ }
39636
+ if ((tag & 7) === 4 || tag === 0) {
39637
+ break;
39638
+ }
39639
+ reader.skipType(tag & 7);
39640
+ }
39641
+ return message;
39642
+ },
39643
+
39644
+ fromJSON(object: any): MessageReactionList {
39645
+ return {
39646
+ reactions: globalThis.Array.isArray(object?.reactions)
39647
+ ? object.reactions.map((e: any) => MessageReaction.fromJSON(e))
39648
+ : [],
39649
+ };
39650
+ },
39651
+
39652
+ toJSON(message: MessageReactionList): unknown {
39653
+ const obj: any = {};
39654
+ if (message.reactions?.length) {
39655
+ obj.reactions = message.reactions.map((e) => MessageReaction.toJSON(e));
39656
+ }
39657
+ return obj;
39658
+ },
39659
+
39660
+ create<I extends Exact<DeepPartial<MessageReactionList>, I>>(base?: I): MessageReactionList {
39661
+ return MessageReactionList.fromPartial(base ?? ({} as any));
39662
+ },
39663
+ fromPartial<I extends Exact<DeepPartial<MessageReactionList>, I>>(object: I): MessageReactionList {
39664
+ const message = createBaseMessageReactionList();
39665
+ message.reactions = object.reactions?.map((e) => MessageReaction.fromPartial(e)) || [];
39666
+ return message;
39667
+ },
39668
+ };
39669
+
39670
+ function createBaseListClanBadgeCountRequest(): ListClanBadgeCountRequest {
39671
+ return { clan_id: "" };
39672
+ }
39673
+
39674
+ export const ListClanBadgeCountRequest = {
39675
+ encode(message: ListClanBadgeCountRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
39676
+ if (message.clan_id !== "") {
39677
+ writer.uint32(10).string(message.clan_id);
39678
+ }
39679
+ return writer;
39680
+ },
39681
+
39682
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListClanBadgeCountRequest {
39683
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
39684
+ let end = length === undefined ? reader.len : reader.pos + length;
39685
+ const message = createBaseListClanBadgeCountRequest();
39686
+ while (reader.pos < end) {
39687
+ const tag = reader.uint32();
39688
+ switch (tag >>> 3) {
39689
+ case 1:
39690
+ if (tag !== 10) {
39691
+ break;
39692
+ }
39693
+
39694
+ message.clan_id = reader.string();
39695
+ continue;
39696
+ }
39697
+ if ((tag & 7) === 4 || tag === 0) {
39698
+ break;
39699
+ }
39700
+ reader.skipType(tag & 7);
39701
+ }
39702
+ return message;
39703
+ },
39704
+
39705
+ fromJSON(object: any): ListClanBadgeCountRequest {
39706
+ return { clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "" };
39707
+ },
39708
+
39709
+ toJSON(message: ListClanBadgeCountRequest): unknown {
39710
+ const obj: any = {};
39711
+ if (message.clan_id !== "") {
39712
+ obj.clan_id = message.clan_id;
39713
+ }
39714
+ return obj;
39715
+ },
39716
+
39717
+ create<I extends Exact<DeepPartial<ListClanBadgeCountRequest>, I>>(base?: I): ListClanBadgeCountRequest {
39718
+ return ListClanBadgeCountRequest.fromPartial(base ?? ({} as any));
39719
+ },
39720
+ fromPartial<I extends Exact<DeepPartial<ListClanBadgeCountRequest>, I>>(object: I): ListClanBadgeCountRequest {
39721
+ const message = createBaseListClanBadgeCountRequest();
39722
+ message.clan_id = object.clan_id ?? "";
39723
+ return message;
39724
+ },
39725
+ };
39726
+
39727
+ function createBaseListClanBadgeCountResponse(): ListClanBadgeCountResponse {
39728
+ return { badge_count: 0 };
39729
+ }
39730
+
39731
+ export const ListClanBadgeCountResponse = {
39732
+ encode(message: ListClanBadgeCountResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
39733
+ if (message.badge_count !== 0) {
39734
+ writer.uint32(8).int32(message.badge_count);
39735
+ }
39736
+ return writer;
39737
+ },
39738
+
39739
+ decode(input: _m0.Reader | Uint8Array, length?: number): ListClanBadgeCountResponse {
39740
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
39741
+ let end = length === undefined ? reader.len : reader.pos + length;
39742
+ const message = createBaseListClanBadgeCountResponse();
39743
+ while (reader.pos < end) {
39744
+ const tag = reader.uint32();
39745
+ switch (tag >>> 3) {
39746
+ case 1:
39747
+ if (tag !== 8) {
39748
+ break;
39749
+ }
39750
+
39751
+ message.badge_count = reader.int32();
39752
+ continue;
39753
+ }
39754
+ if ((tag & 7) === 4 || tag === 0) {
39755
+ break;
39756
+ }
39757
+ reader.skipType(tag & 7);
39758
+ }
39759
+ return message;
39760
+ },
39761
+
39762
+ fromJSON(object: any): ListClanBadgeCountResponse {
39763
+ return { badge_count: isSet(object.badge_count) ? globalThis.Number(object.badge_count) : 0 };
39764
+ },
39765
+
39766
+ toJSON(message: ListClanBadgeCountResponse): unknown {
39767
+ const obj: any = {};
39768
+ if (message.badge_count !== 0) {
39769
+ obj.badge_count = Math.round(message.badge_count);
39770
+ }
39771
+ return obj;
39772
+ },
39773
+
39774
+ create<I extends Exact<DeepPartial<ListClanBadgeCountResponse>, I>>(base?: I): ListClanBadgeCountResponse {
39775
+ return ListClanBadgeCountResponse.fromPartial(base ?? ({} as any));
39776
+ },
39777
+ fromPartial<I extends Exact<DeepPartial<ListClanBadgeCountResponse>, I>>(object: I): ListClanBadgeCountResponse {
39778
+ const message = createBaseListClanBadgeCountResponse();
39779
+ message.badge_count = object.badge_count ?? 0;
39780
+ return message;
39781
+ },
39782
+ };
39783
+
39652
39784
  function bytesFromBase64(b64: string): Uint8Array {
39653
39785
  if ((globalThis as any).Buffer) {
39654
39786
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));