mezon-js 2.14.46 → 2.14.48

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
@@ -22751,10 +22751,10 @@ export const FilterParam = {
22751
22751
 
22752
22752
  function createBaseSearchMessageDocument(): SearchMessageDocument {
22753
22753
  return {
22754
- message_id: "0",
22755
- channel_id: "0",
22756
- clan_id: "0",
22757
- sender_id: "0",
22754
+ message_id: "",
22755
+ channel_id: "",
22756
+ clan_id: "",
22757
+ sender_id: "",
22758
22758
  content: "",
22759
22759
  mentions: "",
22760
22760
  reactions: "",
@@ -22773,17 +22773,17 @@ function createBaseSearchMessageDocument(): SearchMessageDocument {
22773
22773
 
22774
22774
  export const SearchMessageDocument = {
22775
22775
  encode(message: SearchMessageDocument, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
22776
- if (message.message_id !== "0") {
22777
- writer.uint32(8).int64(message.message_id);
22776
+ if (message.message_id !== "") {
22777
+ writer.uint32(10).string(message.message_id);
22778
22778
  }
22779
- if (message.channel_id !== "0") {
22780
- writer.uint32(16).int64(message.channel_id);
22779
+ if (message.channel_id !== "") {
22780
+ writer.uint32(18).string(message.channel_id);
22781
22781
  }
22782
- if (message.clan_id !== "0") {
22783
- writer.uint32(24).int64(message.clan_id);
22782
+ if (message.clan_id !== "") {
22783
+ writer.uint32(26).string(message.clan_id);
22784
22784
  }
22785
- if (message.sender_id !== "0") {
22786
- writer.uint32(32).int64(message.sender_id);
22785
+ if (message.sender_id !== "") {
22786
+ writer.uint32(34).string(message.sender_id);
22787
22787
  }
22788
22788
  if (message.content !== "") {
22789
22789
  writer.uint32(42).string(message.content);
@@ -22835,32 +22835,32 @@ export const SearchMessageDocument = {
22835
22835
  const tag = reader.uint32();
22836
22836
  switch (tag >>> 3) {
22837
22837
  case 1:
22838
- if (tag !== 8) {
22838
+ if (tag !== 10) {
22839
22839
  break;
22840
22840
  }
22841
22841
 
22842
- message.message_id = longToString(reader.int64() as Long);
22842
+ message.message_id = reader.string();
22843
22843
  continue;
22844
22844
  case 2:
22845
- if (tag !== 16) {
22845
+ if (tag !== 18) {
22846
22846
  break;
22847
22847
  }
22848
22848
 
22849
- message.channel_id = longToString(reader.int64() as Long);
22849
+ message.channel_id = reader.string();
22850
22850
  continue;
22851
22851
  case 3:
22852
- if (tag !== 24) {
22852
+ if (tag !== 26) {
22853
22853
  break;
22854
22854
  }
22855
22855
 
22856
- message.clan_id = longToString(reader.int64() as Long);
22856
+ message.clan_id = reader.string();
22857
22857
  continue;
22858
22858
  case 4:
22859
- if (tag !== 32) {
22859
+ if (tag !== 34) {
22860
22860
  break;
22861
22861
  }
22862
22862
 
22863
- message.sender_id = longToString(reader.int64() as Long);
22863
+ message.sender_id = reader.string();
22864
22864
  continue;
22865
22865
  case 5:
22866
22866
  if (tag !== 42) {
@@ -22964,10 +22964,10 @@ export const SearchMessageDocument = {
22964
22964
 
22965
22965
  fromJSON(object: any): SearchMessageDocument {
22966
22966
  return {
22967
- message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "0",
22968
- channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
22969
- clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
22970
- sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "0",
22967
+ message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
22968
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
22969
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
22970
+ sender_id: isSet(object.sender_id) ? globalThis.String(object.sender_id) : "",
22971
22971
  content: isSet(object.content) ? globalThis.String(object.content) : "",
22972
22972
  mentions: isSet(object.mentions) ? globalThis.String(object.mentions) : "",
22973
22973
  reactions: isSet(object.reactions) ? globalThis.String(object.reactions) : "",
@@ -22986,16 +22986,16 @@ export const SearchMessageDocument = {
22986
22986
 
22987
22987
  toJSON(message: SearchMessageDocument): unknown {
22988
22988
  const obj: any = {};
22989
- if (message.message_id !== "0") {
22989
+ if (message.message_id !== "") {
22990
22990
  obj.message_id = message.message_id;
22991
22991
  }
22992
- if (message.channel_id !== "0") {
22992
+ if (message.channel_id !== "") {
22993
22993
  obj.channel_id = message.channel_id;
22994
22994
  }
22995
- if (message.clan_id !== "0") {
22995
+ if (message.clan_id !== "") {
22996
22996
  obj.clan_id = message.clan_id;
22997
22997
  }
22998
- if (message.sender_id !== "0") {
22998
+ if (message.sender_id !== "") {
22999
22999
  obj.sender_id = message.sender_id;
23000
23000
  }
23001
23001
  if (message.content !== "") {
@@ -23045,10 +23045,10 @@ export const SearchMessageDocument = {
23045
23045
  },
23046
23046
  fromPartial<I extends Exact<DeepPartial<SearchMessageDocument>, I>>(object: I): SearchMessageDocument {
23047
23047
  const message = createBaseSearchMessageDocument();
23048
- message.message_id = object.message_id ?? "0";
23049
- message.channel_id = object.channel_id ?? "0";
23050
- message.clan_id = object.clan_id ?? "0";
23051
- message.sender_id = object.sender_id ?? "0";
23048
+ message.message_id = object.message_id ?? "";
23049
+ message.channel_id = object.channel_id ?? "";
23050
+ message.clan_id = object.clan_id ?? "";
23051
+ message.sender_id = object.sender_id ?? "";
23052
23052
  message.content = object.content ?? "";
23053
23053
  message.mentions = object.mentions ?? "";
23054
23054
  message.reactions = object.reactions ?? "";
package/api.gen.ts CHANGED
@@ -1722,6 +1722,8 @@ export interface ApiMessageAttachment {
1722
1722
  sender_id?: string;
1723
1723
  // duration for video in seconds
1724
1724
  duration?: number;
1725
+ // create_time_seconds
1726
+ create_time_seconds?: number;
1725
1727
  }
1726
1728
 
1727
1729
  /** */
package/dist/api.gen.d.ts CHANGED
@@ -983,6 +983,7 @@ export interface ApiMessageAttachment {
983
983
  message_id?: string;
984
984
  sender_id?: string;
985
985
  duration?: number;
986
+ create_time_seconds?: number;
986
987
  }
987
988
  /** */
988
989
  export interface ApiMessageDeleted {
@@ -17935,10 +17935,10 @@ var FilterParam = {
17935
17935
  };
17936
17936
  function createBaseSearchMessageDocument() {
17937
17937
  return {
17938
- message_id: "0",
17939
- channel_id: "0",
17940
- clan_id: "0",
17941
- sender_id: "0",
17938
+ message_id: "",
17939
+ channel_id: "",
17940
+ clan_id: "",
17941
+ sender_id: "",
17942
17942
  content: "",
17943
17943
  mentions: "",
17944
17944
  reactions: "",
@@ -17956,17 +17956,17 @@ function createBaseSearchMessageDocument() {
17956
17956
  }
17957
17957
  var SearchMessageDocument = {
17958
17958
  encode(message, writer = import_minimal3.default.Writer.create()) {
17959
- if (message.message_id !== "0") {
17960
- writer.uint32(8).int64(message.message_id);
17959
+ if (message.message_id !== "") {
17960
+ writer.uint32(10).string(message.message_id);
17961
17961
  }
17962
- if (message.channel_id !== "0") {
17963
- writer.uint32(16).int64(message.channel_id);
17962
+ if (message.channel_id !== "") {
17963
+ writer.uint32(18).string(message.channel_id);
17964
17964
  }
17965
- if (message.clan_id !== "0") {
17966
- writer.uint32(24).int64(message.clan_id);
17965
+ if (message.clan_id !== "") {
17966
+ writer.uint32(26).string(message.clan_id);
17967
17967
  }
17968
- if (message.sender_id !== "0") {
17969
- writer.uint32(32).int64(message.sender_id);
17968
+ if (message.sender_id !== "") {
17969
+ writer.uint32(34).string(message.sender_id);
17970
17970
  }
17971
17971
  if (message.content !== "") {
17972
17972
  writer.uint32(42).string(message.content);
@@ -18017,28 +18017,28 @@ var SearchMessageDocument = {
18017
18017
  const tag = reader.uint32();
18018
18018
  switch (tag >>> 3) {
18019
18019
  case 1:
18020
- if (tag !== 8) {
18020
+ if (tag !== 10) {
18021
18021
  break;
18022
18022
  }
18023
- message.message_id = longToString(reader.int64());
18023
+ message.message_id = reader.string();
18024
18024
  continue;
18025
18025
  case 2:
18026
- if (tag !== 16) {
18026
+ if (tag !== 18) {
18027
18027
  break;
18028
18028
  }
18029
- message.channel_id = longToString(reader.int64());
18029
+ message.channel_id = reader.string();
18030
18030
  continue;
18031
18031
  case 3:
18032
- if (tag !== 24) {
18032
+ if (tag !== 26) {
18033
18033
  break;
18034
18034
  }
18035
- message.clan_id = longToString(reader.int64());
18035
+ message.clan_id = reader.string();
18036
18036
  continue;
18037
18037
  case 4:
18038
- if (tag !== 32) {
18038
+ if (tag !== 34) {
18039
18039
  break;
18040
18040
  }
18041
- message.sender_id = longToString(reader.int64());
18041
+ message.sender_id = reader.string();
18042
18042
  continue;
18043
18043
  case 5:
18044
18044
  if (tag !== 42) {
@@ -18128,10 +18128,10 @@ var SearchMessageDocument = {
18128
18128
  },
18129
18129
  fromJSON(object) {
18130
18130
  return {
18131
- message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : "0",
18132
- channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
18133
- clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
18134
- sender_id: isSet2(object.sender_id) ? globalThis.String(object.sender_id) : "0",
18131
+ message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : "",
18132
+ channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "",
18133
+ clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "",
18134
+ sender_id: isSet2(object.sender_id) ? globalThis.String(object.sender_id) : "",
18135
18135
  content: isSet2(object.content) ? globalThis.String(object.content) : "",
18136
18136
  mentions: isSet2(object.mentions) ? globalThis.String(object.mentions) : "",
18137
18137
  reactions: isSet2(object.reactions) ? globalThis.String(object.reactions) : "",
@@ -18149,16 +18149,16 @@ var SearchMessageDocument = {
18149
18149
  },
18150
18150
  toJSON(message) {
18151
18151
  const obj = {};
18152
- if (message.message_id !== "0") {
18152
+ if (message.message_id !== "") {
18153
18153
  obj.message_id = message.message_id;
18154
18154
  }
18155
- if (message.channel_id !== "0") {
18155
+ if (message.channel_id !== "") {
18156
18156
  obj.channel_id = message.channel_id;
18157
18157
  }
18158
- if (message.clan_id !== "0") {
18158
+ if (message.clan_id !== "") {
18159
18159
  obj.clan_id = message.clan_id;
18160
18160
  }
18161
- if (message.sender_id !== "0") {
18161
+ if (message.sender_id !== "") {
18162
18162
  obj.sender_id = message.sender_id;
18163
18163
  }
18164
18164
  if (message.content !== "") {
@@ -18208,10 +18208,10 @@ var SearchMessageDocument = {
18208
18208
  fromPartial(object) {
18209
18209
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
18210
18210
  const message = createBaseSearchMessageDocument();
18211
- message.message_id = (_a = object.message_id) != null ? _a : "0";
18212
- message.channel_id = (_b = object.channel_id) != null ? _b : "0";
18213
- message.clan_id = (_c = object.clan_id) != null ? _c : "0";
18214
- message.sender_id = (_d = object.sender_id) != null ? _d : "0";
18211
+ message.message_id = (_a = object.message_id) != null ? _a : "";
18212
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
18213
+ message.clan_id = (_c = object.clan_id) != null ? _c : "";
18214
+ message.sender_id = (_d = object.sender_id) != null ? _d : "";
18215
18215
  message.content = (_e = object.content) != null ? _e : "";
18216
18216
  message.mentions = (_f = object.mentions) != null ? _f : "";
18217
18217
  message.reactions = (_g = object.reactions) != null ? _g : "";
@@ -17900,10 +17900,10 @@ var FilterParam = {
17900
17900
  };
17901
17901
  function createBaseSearchMessageDocument() {
17902
17902
  return {
17903
- message_id: "0",
17904
- channel_id: "0",
17905
- clan_id: "0",
17906
- sender_id: "0",
17903
+ message_id: "",
17904
+ channel_id: "",
17905
+ clan_id: "",
17906
+ sender_id: "",
17907
17907
  content: "",
17908
17908
  mentions: "",
17909
17909
  reactions: "",
@@ -17921,17 +17921,17 @@ function createBaseSearchMessageDocument() {
17921
17921
  }
17922
17922
  var SearchMessageDocument = {
17923
17923
  encode(message, writer = import_minimal3.default.Writer.create()) {
17924
- if (message.message_id !== "0") {
17925
- writer.uint32(8).int64(message.message_id);
17924
+ if (message.message_id !== "") {
17925
+ writer.uint32(10).string(message.message_id);
17926
17926
  }
17927
- if (message.channel_id !== "0") {
17928
- writer.uint32(16).int64(message.channel_id);
17927
+ if (message.channel_id !== "") {
17928
+ writer.uint32(18).string(message.channel_id);
17929
17929
  }
17930
- if (message.clan_id !== "0") {
17931
- writer.uint32(24).int64(message.clan_id);
17930
+ if (message.clan_id !== "") {
17931
+ writer.uint32(26).string(message.clan_id);
17932
17932
  }
17933
- if (message.sender_id !== "0") {
17934
- writer.uint32(32).int64(message.sender_id);
17933
+ if (message.sender_id !== "") {
17934
+ writer.uint32(34).string(message.sender_id);
17935
17935
  }
17936
17936
  if (message.content !== "") {
17937
17937
  writer.uint32(42).string(message.content);
@@ -17982,28 +17982,28 @@ var SearchMessageDocument = {
17982
17982
  const tag = reader.uint32();
17983
17983
  switch (tag >>> 3) {
17984
17984
  case 1:
17985
- if (tag !== 8) {
17985
+ if (tag !== 10) {
17986
17986
  break;
17987
17987
  }
17988
- message.message_id = longToString(reader.int64());
17988
+ message.message_id = reader.string();
17989
17989
  continue;
17990
17990
  case 2:
17991
- if (tag !== 16) {
17991
+ if (tag !== 18) {
17992
17992
  break;
17993
17993
  }
17994
- message.channel_id = longToString(reader.int64());
17994
+ message.channel_id = reader.string();
17995
17995
  continue;
17996
17996
  case 3:
17997
- if (tag !== 24) {
17997
+ if (tag !== 26) {
17998
17998
  break;
17999
17999
  }
18000
- message.clan_id = longToString(reader.int64());
18000
+ message.clan_id = reader.string();
18001
18001
  continue;
18002
18002
  case 4:
18003
- if (tag !== 32) {
18003
+ if (tag !== 34) {
18004
18004
  break;
18005
18005
  }
18006
- message.sender_id = longToString(reader.int64());
18006
+ message.sender_id = reader.string();
18007
18007
  continue;
18008
18008
  case 5:
18009
18009
  if (tag !== 42) {
@@ -18093,10 +18093,10 @@ var SearchMessageDocument = {
18093
18093
  },
18094
18094
  fromJSON(object) {
18095
18095
  return {
18096
- message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : "0",
18097
- channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "0",
18098
- clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "0",
18099
- sender_id: isSet2(object.sender_id) ? globalThis.String(object.sender_id) : "0",
18096
+ message_id: isSet2(object.message_id) ? globalThis.String(object.message_id) : "",
18097
+ channel_id: isSet2(object.channel_id) ? globalThis.String(object.channel_id) : "",
18098
+ clan_id: isSet2(object.clan_id) ? globalThis.String(object.clan_id) : "",
18099
+ sender_id: isSet2(object.sender_id) ? globalThis.String(object.sender_id) : "",
18100
18100
  content: isSet2(object.content) ? globalThis.String(object.content) : "",
18101
18101
  mentions: isSet2(object.mentions) ? globalThis.String(object.mentions) : "",
18102
18102
  reactions: isSet2(object.reactions) ? globalThis.String(object.reactions) : "",
@@ -18114,16 +18114,16 @@ var SearchMessageDocument = {
18114
18114
  },
18115
18115
  toJSON(message) {
18116
18116
  const obj = {};
18117
- if (message.message_id !== "0") {
18117
+ if (message.message_id !== "") {
18118
18118
  obj.message_id = message.message_id;
18119
18119
  }
18120
- if (message.channel_id !== "0") {
18120
+ if (message.channel_id !== "") {
18121
18121
  obj.channel_id = message.channel_id;
18122
18122
  }
18123
- if (message.clan_id !== "0") {
18123
+ if (message.clan_id !== "") {
18124
18124
  obj.clan_id = message.clan_id;
18125
18125
  }
18126
- if (message.sender_id !== "0") {
18126
+ if (message.sender_id !== "") {
18127
18127
  obj.sender_id = message.sender_id;
18128
18128
  }
18129
18129
  if (message.content !== "") {
@@ -18173,10 +18173,10 @@ var SearchMessageDocument = {
18173
18173
  fromPartial(object) {
18174
18174
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
18175
18175
  const message = createBaseSearchMessageDocument();
18176
- message.message_id = (_a = object.message_id) != null ? _a : "0";
18177
- message.channel_id = (_b = object.channel_id) != null ? _b : "0";
18178
- message.clan_id = (_c = object.clan_id) != null ? _c : "0";
18179
- message.sender_id = (_d = object.sender_id) != null ? _d : "0";
18176
+ message.message_id = (_a = object.message_id) != null ? _a : "";
18177
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
18178
+ message.clan_id = (_c = object.clan_id) != null ? _c : "";
18179
+ message.sender_id = (_d = object.sender_id) != null ? _d : "";
18180
18180
  message.content = (_e = object.content) != null ? _e : "";
18181
18181
  message.mentions = (_f = object.mentions) != null ? _f : "";
18182
18182
  message.reactions = (_g = object.reactions) != null ? _g : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.14.46",
3
+ "version": "2.14.48",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },