mezon-js-protobuf 1.5.26 → 1.5.28

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
@@ -562,9 +562,9 @@ export interface ChannelMessage {
562
562
  /** referenced message */
563
563
  referenced_message: string;
564
564
  /** create time in ms */
565
- create_time_ms: number;
565
+ create_time_seconds: number;
566
566
  /** update time in ms */
567
- update_time_ms: number;
567
+ update_time_seconds: number;
568
568
  /** channel mode */
569
569
  mode: number;
570
570
  /** hide editted */
@@ -1736,7 +1736,7 @@ export interface ChannelMessageHeader {
1736
1736
  /** the message id */
1737
1737
  id: string;
1738
1738
  /** the time stamp */
1739
- timestamp: string;
1739
+ timestamp_seconds: number;
1740
1740
  /** the sender id */
1741
1741
  sender_id: string;
1742
1742
  /** the content */
@@ -1800,9 +1800,9 @@ export interface ChannelDescription {
1800
1800
  /** creator name */
1801
1801
  creator_name: string;
1802
1802
  /** create time ms */
1803
- create_time_ms: number;
1803
+ create_time_seconds: number;
1804
1804
  /** update time ms */
1805
- update_time_ms: number;
1805
+ update_time_seconds: number;
1806
1806
  }
1807
1807
 
1808
1808
  /** A list of channel description, usually a result of a list operation. */
@@ -6020,8 +6020,8 @@ function createBaseChannelMessage(): ChannelMessage {
6020
6020
  attachments: "",
6021
6021
  references: "",
6022
6022
  referenced_message: "",
6023
- create_time_ms: 0,
6024
- update_time_ms: 0,
6023
+ create_time_seconds: 0,
6024
+ update_time_seconds: 0,
6025
6025
  mode: 0,
6026
6026
  hide_editted: false,
6027
6027
  };
@@ -6092,11 +6092,11 @@ export const ChannelMessage = {
6092
6092
  if (message.referenced_message !== "") {
6093
6093
  writer.uint32(170).string(message.referenced_message);
6094
6094
  }
6095
- if (message.create_time_ms !== 0) {
6096
- writer.uint32(176).uint32(message.create_time_ms);
6095
+ if (message.create_time_seconds !== 0) {
6096
+ writer.uint32(176).uint32(message.create_time_seconds);
6097
6097
  }
6098
- if (message.update_time_ms !== 0) {
6099
- writer.uint32(184).uint32(message.update_time_ms);
6098
+ if (message.update_time_seconds !== 0) {
6099
+ writer.uint32(184).uint32(message.update_time_seconds);
6100
6100
  }
6101
6101
  if (message.mode !== 0) {
6102
6102
  writer.uint32(192).int32(message.mode);
@@ -6266,14 +6266,14 @@ export const ChannelMessage = {
6266
6266
  break;
6267
6267
  }
6268
6268
 
6269
- message.create_time_ms = reader.uint32();
6269
+ message.create_time_seconds = reader.uint32();
6270
6270
  continue;
6271
6271
  case 23:
6272
6272
  if (tag !== 184) {
6273
6273
  break;
6274
6274
  }
6275
6275
 
6276
- message.update_time_ms = reader.uint32();
6276
+ message.update_time_seconds = reader.uint32();
6277
6277
  continue;
6278
6278
  case 24:
6279
6279
  if (tag !== 192) {
@@ -6321,8 +6321,8 @@ export const ChannelMessage = {
6321
6321
  attachments: isSet(object.attachments) ? globalThis.String(object.attachments) : "",
6322
6322
  references: isSet(object.references) ? globalThis.String(object.references) : "",
6323
6323
  referenced_message: isSet(object.referenced_message) ? globalThis.String(object.referenced_message) : "",
6324
- create_time_ms: isSet(object.create_time_ms) ? globalThis.Number(object.create_time_ms) : 0,
6325
- update_time_ms: isSet(object.update_time_ms) ? globalThis.Number(object.update_time_ms) : 0,
6324
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
6325
+ update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
6326
6326
  mode: isSet(object.mode) ? globalThis.Number(object.mode) : 0,
6327
6327
  hide_editted: isSet(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
6328
6328
  };
@@ -6393,11 +6393,11 @@ export const ChannelMessage = {
6393
6393
  if (message.referenced_message !== "") {
6394
6394
  obj.referenced_message = message.referenced_message;
6395
6395
  }
6396
- if (message.create_time_ms !== 0) {
6397
- obj.create_time_ms = Math.round(message.create_time_ms);
6396
+ if (message.create_time_seconds !== 0) {
6397
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
6398
6398
  }
6399
- if (message.update_time_ms !== 0) {
6400
- obj.update_time_ms = Math.round(message.update_time_ms);
6399
+ if (message.update_time_seconds !== 0) {
6400
+ obj.update_time_seconds = Math.round(message.update_time_seconds);
6401
6401
  }
6402
6402
  if (message.mode !== 0) {
6403
6403
  obj.mode = Math.round(message.mode);
@@ -6434,8 +6434,8 @@ export const ChannelMessage = {
6434
6434
  message.attachments = object.attachments ?? "";
6435
6435
  message.references = object.references ?? "";
6436
6436
  message.referenced_message = object.referenced_message ?? "";
6437
- message.create_time_ms = object.create_time_ms ?? 0;
6438
- message.update_time_ms = object.update_time_ms ?? 0;
6437
+ message.create_time_seconds = object.create_time_seconds ?? 0;
6438
+ message.update_time_seconds = object.update_time_seconds ?? 0;
6439
6439
  message.mode = object.mode ?? 0;
6440
6440
  message.hide_editted = object.hide_editted ?? false;
6441
6441
  return message;
@@ -14649,7 +14649,16 @@ export const ListCategoryDescsRequest = {
14649
14649
  };
14650
14650
 
14651
14651
  function createBaseChannelMessageHeader(): ChannelMessageHeader {
14652
- return { id: "", timestamp: "", sender_id: "", content: "", attachment: "", referece: "", mention: "", reaction: "" };
14652
+ return {
14653
+ id: "",
14654
+ timestamp_seconds: 0,
14655
+ sender_id: "",
14656
+ content: "",
14657
+ attachment: "",
14658
+ referece: "",
14659
+ mention: "",
14660
+ reaction: "",
14661
+ };
14653
14662
  }
14654
14663
 
14655
14664
  export const ChannelMessageHeader = {
@@ -14657,8 +14666,8 @@ export const ChannelMessageHeader = {
14657
14666
  if (message.id !== "") {
14658
14667
  writer.uint32(10).string(message.id);
14659
14668
  }
14660
- if (message.timestamp !== "") {
14661
- writer.uint32(18).string(message.timestamp);
14669
+ if (message.timestamp_seconds !== 0) {
14670
+ writer.uint32(16).uint32(message.timestamp_seconds);
14662
14671
  }
14663
14672
  if (message.sender_id !== "") {
14664
14673
  writer.uint32(26).string(message.sender_id);
@@ -14696,11 +14705,11 @@ export const ChannelMessageHeader = {
14696
14705
  message.id = reader.string();
14697
14706
  continue;
14698
14707
  case 2:
14699
- if (tag !== 18) {
14708
+ if (tag !== 16) {
14700
14709
  break;
14701
14710
  }
14702
14711
 
14703
- message.timestamp = reader.string();
14712
+ message.timestamp_seconds = reader.uint32();
14704
14713
  continue;
14705
14714
  case 3:
14706
14715
  if (tag !== 26) {
@@ -14756,7 +14765,7 @@ export const ChannelMessageHeader = {
14756
14765
  fromJSON(object: any): ChannelMessageHeader {
14757
14766
  return {
14758
14767
  id: isSet(object.id) ? globalThis.String(object.id) : "",
14759
- timestamp: isSet(object.timestamp) ? globalThis.String(object.timestamp) : "",
14768
+ timestamp_seconds: isSet(object.timestamp_seconds) ? globalThis.Number(object.timestamp_seconds) : 0,
14760
14769
  sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
14761
14770
  content: isSet(object.content) ? globalThis.String(object.content) : "",
14762
14771
  attachment: isSet(object.attachment) ? globalThis.String(object.attachment) : "",
@@ -14771,8 +14780,8 @@ export const ChannelMessageHeader = {
14771
14780
  if (message.id !== "") {
14772
14781
  obj.id = message.id;
14773
14782
  }
14774
- if (message.timestamp !== "") {
14775
- obj.timestamp = message.timestamp;
14783
+ if (message.timestamp_seconds !== 0) {
14784
+ obj.timestamp_seconds = Math.round(message.timestamp_seconds);
14776
14785
  }
14777
14786
  if (message.sender_id !== "") {
14778
14787
  obj.sender_id = message.sender_id;
@@ -14801,7 +14810,7 @@ export const ChannelMessageHeader = {
14801
14810
  fromPartial<I extends Exact<DeepPartial<ChannelMessageHeader>, I>>(object: I): ChannelMessageHeader {
14802
14811
  const message = createBaseChannelMessageHeader();
14803
14812
  message.id = object.id ?? "";
14804
- message.timestamp = object.timestamp ?? "";
14813
+ message.timestamp_seconds = object.timestamp_seconds ?? 0;
14805
14814
  message.sender_id = object.sender_id ?? "";
14806
14815
  message.content = object.content ?? "";
14807
14816
  message.attachment = object.attachment ?? "";
@@ -14834,8 +14843,8 @@ function createBaseChannelDescription(): ChannelDescription {
14834
14843
  last_pin_message: "",
14835
14844
  usernames: "",
14836
14845
  creator_name: "",
14837
- create_time_ms: 0,
14838
- update_time_ms: 0,
14846
+ create_time_seconds: 0,
14847
+ update_time_seconds: 0,
14839
14848
  };
14840
14849
  }
14841
14850
 
@@ -14901,11 +14910,11 @@ export const ChannelDescription = {
14901
14910
  if (message.creator_name !== "") {
14902
14911
  writer.uint32(162).string(message.creator_name);
14903
14912
  }
14904
- if (message.create_time_ms !== 0) {
14905
- writer.uint32(168).uint32(message.create_time_ms);
14913
+ if (message.create_time_seconds !== 0) {
14914
+ writer.uint32(168).uint32(message.create_time_seconds);
14906
14915
  }
14907
- if (message.update_time_ms !== 0) {
14908
- writer.uint32(176).uint32(message.update_time_ms);
14916
+ if (message.update_time_seconds !== 0) {
14917
+ writer.uint32(176).uint32(message.update_time_seconds);
14909
14918
  }
14910
14919
  return writer;
14911
14920
  },
@@ -15062,14 +15071,14 @@ export const ChannelDescription = {
15062
15071
  break;
15063
15072
  }
15064
15073
 
15065
- message.create_time_ms = reader.uint32();
15074
+ message.create_time_seconds = reader.uint32();
15066
15075
  continue;
15067
15076
  case 22:
15068
15077
  if (tag !== 176) {
15069
15078
  break;
15070
15079
  }
15071
15080
 
15072
- message.update_time_ms = reader.uint32();
15081
+ message.update_time_seconds = reader.uint32();
15073
15082
  continue;
15074
15083
  }
15075
15084
  if ((tag & 7) === 4 || tag === 0) {
@@ -15108,8 +15117,8 @@ export const ChannelDescription = {
15108
15117
  last_pin_message: isSet(object.last_pin_message) ? globalThis.String(object.last_pin_message) : "",
15109
15118
  usernames: isSet(object.usernames) ? globalThis.String(object.usernames) : "",
15110
15119
  creator_name: isSet(object.creator_name) ? globalThis.String(object.creator_name) : "",
15111
- create_time_ms: isSet(object.create_time_ms) ? globalThis.Number(object.create_time_ms) : 0,
15112
- update_time_ms: isSet(object.update_time_ms) ? globalThis.Number(object.update_time_ms) : 0,
15120
+ create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
15121
+ update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
15113
15122
  };
15114
15123
  },
15115
15124
 
@@ -15175,11 +15184,11 @@ export const ChannelDescription = {
15175
15184
  if (message.creator_name !== "") {
15176
15185
  obj.creator_name = message.creator_name;
15177
15186
  }
15178
- if (message.create_time_ms !== 0) {
15179
- obj.create_time_ms = Math.round(message.create_time_ms);
15187
+ if (message.create_time_seconds !== 0) {
15188
+ obj.create_time_seconds = Math.round(message.create_time_seconds);
15180
15189
  }
15181
- if (message.update_time_ms !== 0) {
15182
- obj.update_time_ms = Math.round(message.update_time_ms);
15190
+ if (message.update_time_seconds !== 0) {
15191
+ obj.update_time_seconds = Math.round(message.update_time_seconds);
15183
15192
  }
15184
15193
  return obj;
15185
15194
  },
@@ -15213,8 +15222,8 @@ export const ChannelDescription = {
15213
15222
  message.last_pin_message = object.last_pin_message ?? "";
15214
15223
  message.usernames = object.usernames ?? "";
15215
15224
  message.creator_name = object.creator_name ?? "";
15216
- message.create_time_ms = object.create_time_ms ?? 0;
15217
- message.update_time_ms = object.update_time_ms ?? 0;
15225
+ message.create_time_seconds = object.create_time_seconds ?? 0;
15226
+ message.update_time_seconds = object.update_time_seconds ?? 0;
15218
15227
  return message;
15219
15228
  },
15220
15229
  };