mezon-js-protobuf 1.8.58 → 1.8.59

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.
@@ -14504,7 +14504,8 @@ function createBaseEnvelope() {
14504
14504
  meet_participant_event: void 0,
14505
14505
  transfer_ownership_event: void 0,
14506
14506
  add_friend: void 0,
14507
- ban_user_event: void 0
14507
+ ban_user_event: void 0,
14508
+ active_archived_thread_dm: void 0
14508
14509
  };
14509
14510
  }
14510
14511
  var Envelope = {
@@ -14776,6 +14777,9 @@ var Envelope = {
14776
14777
  if (message.ban_user_event !== void 0) {
14777
14778
  BannedUserEvent.encode(message.ban_user_event, writer.uint32(714).fork()).ldelim();
14778
14779
  }
14780
+ if (message.active_archived_thread_dm !== void 0) {
14781
+ ActiveArchivedThreadDM.encode(message.active_archived_thread_dm, writer.uint32(722).fork()).ldelim();
14782
+ }
14779
14783
  return writer;
14780
14784
  },
14781
14785
  decode(input, length) {
@@ -15319,6 +15323,12 @@ var Envelope = {
15319
15323
  }
15320
15324
  message.ban_user_event = BannedUserEvent.decode(reader, reader.uint32());
15321
15325
  continue;
15326
+ case 90:
15327
+ if (tag !== 722) {
15328
+ break;
15329
+ }
15330
+ message.active_archived_thread_dm = ActiveArchivedThreadDM.decode(reader, reader.uint32());
15331
+ continue;
15322
15332
  }
15323
15333
  if ((tag & 7) === 4 || tag === 0) {
15324
15334
  break;
@@ -15417,7 +15427,8 @@ var Envelope = {
15417
15427
  meet_participant_event: isSet4(object.meet_participant_event) ? MeetParticipantEvent.fromJSON(object.meet_participant_event) : void 0,
15418
15428
  transfer_ownership_event: isSet4(object.transfer_ownership_event) ? TransferOwnershipEvent.fromJSON(object.transfer_ownership_event) : void 0,
15419
15429
  add_friend: isSet4(object.add_friend) ? AddFriend.fromJSON(object.add_friend) : void 0,
15420
- ban_user_event: isSet4(object.ban_user_event) ? BannedUserEvent.fromJSON(object.ban_user_event) : void 0
15430
+ ban_user_event: isSet4(object.ban_user_event) ? BannedUserEvent.fromJSON(object.ban_user_event) : void 0,
15431
+ active_archived_thread_dm: isSet4(object.active_archived_thread_dm) ? ActiveArchivedThreadDM.fromJSON(object.active_archived_thread_dm) : void 0
15421
15432
  };
15422
15433
  },
15423
15434
  toJSON(message) {
@@ -15691,6 +15702,9 @@ var Envelope = {
15691
15702
  if (message.ban_user_event !== void 0) {
15692
15703
  obj.ban_user_event = BannedUserEvent.toJSON(message.ban_user_event);
15693
15704
  }
15705
+ if (message.active_archived_thread_dm !== void 0) {
15706
+ obj.active_archived_thread_dm = ActiveArchivedThreadDM.toJSON(message.active_archived_thread_dm);
15707
+ }
15694
15708
  return obj;
15695
15709
  },
15696
15710
  create(base) {
@@ -15788,6 +15802,7 @@ var Envelope = {
15788
15802
  message.transfer_ownership_event = object.transfer_ownership_event !== void 0 && object.transfer_ownership_event !== null ? TransferOwnershipEvent.fromPartial(object.transfer_ownership_event) : void 0;
15789
15803
  message.add_friend = object.add_friend !== void 0 && object.add_friend !== null ? AddFriend.fromPartial(object.add_friend) : void 0;
15790
15804
  message.ban_user_event = object.ban_user_event !== void 0 && object.ban_user_event !== null ? BannedUserEvent.fromPartial(object.ban_user_event) : void 0;
15805
+ message.active_archived_thread_dm = object.active_archived_thread_dm !== void 0 && object.active_archived_thread_dm !== null ? ActiveArchivedThreadDM.fromPartial(object.active_archived_thread_dm) : void 0;
15791
15806
  return message;
15792
15807
  }
15793
15808
  };
@@ -22978,16 +22993,10 @@ function createBaseUserProfileRedis() {
22978
22993
  username: "",
22979
22994
  avatar: "",
22980
22995
  display_name: "",
22981
- about_me: "",
22982
22996
  user_status: "",
22983
22997
  status: "",
22984
- create_time_second: 0,
22985
22998
  fcm_tokens: [],
22986
- online: false,
22987
- is_disabled: false,
22988
22999
  joined_clans: [],
22989
- pubkey: "",
22990
- mezon_id: "",
22991
23000
  app_token: "",
22992
23001
  app_url: "",
22993
23002
  is_bot: false,
@@ -23008,47 +23017,29 @@ var UserProfileRedis = {
23008
23017
  if (message.display_name !== "") {
23009
23018
  writer.uint32(34).string(message.display_name);
23010
23019
  }
23011
- if (message.about_me !== "") {
23012
- writer.uint32(42).string(message.about_me);
23013
- }
23014
23020
  if (message.user_status !== "") {
23015
- writer.uint32(50).string(message.user_status);
23021
+ writer.uint32(42).string(message.user_status);
23016
23022
  }
23017
23023
  if (message.status !== "") {
23018
- writer.uint32(58).string(message.status);
23019
- }
23020
- if (message.create_time_second !== 0) {
23021
- writer.uint32(64).uint32(message.create_time_second);
23024
+ writer.uint32(50).string(message.status);
23022
23025
  }
23023
23026
  for (const v of message.fcm_tokens) {
23024
- FCMTokens.encode(v, writer.uint32(74).fork()).ldelim();
23025
- }
23026
- if (message.online !== false) {
23027
- writer.uint32(80).bool(message.online);
23028
- }
23029
- if (message.is_disabled !== false) {
23030
- writer.uint32(88).bool(message.is_disabled);
23027
+ FCMTokens.encode(v, writer.uint32(58).fork()).ldelim();
23031
23028
  }
23032
23029
  for (const v of message.joined_clans) {
23033
- writer.uint32(98).string(v);
23034
- }
23035
- if (message.pubkey !== "") {
23036
- writer.uint32(106).string(message.pubkey);
23037
- }
23038
- if (message.mezon_id !== "") {
23039
- writer.uint32(114).string(message.mezon_id);
23030
+ writer.uint32(66).string(v);
23040
23031
  }
23041
23032
  if (message.app_token !== "") {
23042
- writer.uint32(122).string(message.app_token);
23033
+ writer.uint32(74).string(message.app_token);
23043
23034
  }
23044
23035
  if (message.app_url !== "") {
23045
- writer.uint32(130).string(message.app_url);
23036
+ writer.uint32(82).string(message.app_url);
23046
23037
  }
23047
23038
  if (message.is_bot !== false) {
23048
- writer.uint32(136).bool(message.is_bot);
23039
+ writer.uint32(88).bool(message.is_bot);
23049
23040
  }
23050
23041
  if (message.voip_token !== "") {
23051
- writer.uint32(146).string(message.voip_token);
23042
+ writer.uint32(98).string(message.voip_token);
23052
23043
  }
23053
23044
  return writer;
23054
23045
  },
@@ -23087,84 +23078,48 @@ var UserProfileRedis = {
23087
23078
  if (tag !== 42) {
23088
23079
  break;
23089
23080
  }
23090
- message.about_me = reader.string();
23081
+ message.user_status = reader.string();
23091
23082
  continue;
23092
23083
  case 6:
23093
23084
  if (tag !== 50) {
23094
23085
  break;
23095
23086
  }
23096
- message.user_status = reader.string();
23087
+ message.status = reader.string();
23097
23088
  continue;
23098
23089
  case 7:
23099
23090
  if (tag !== 58) {
23100
23091
  break;
23101
23092
  }
23102
- message.status = reader.string();
23093
+ message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
23103
23094
  continue;
23104
23095
  case 8:
23105
- if (tag !== 64) {
23096
+ if (tag !== 66) {
23106
23097
  break;
23107
23098
  }
23108
- message.create_time_second = reader.uint32();
23099
+ message.joined_clans.push(reader.string());
23109
23100
  continue;
23110
23101
  case 9:
23111
23102
  if (tag !== 74) {
23112
23103
  break;
23113
23104
  }
23114
- message.fcm_tokens.push(FCMTokens.decode(reader, reader.uint32()));
23105
+ message.app_token = reader.string();
23115
23106
  continue;
23116
23107
  case 10:
23117
- if (tag !== 80) {
23108
+ if (tag !== 82) {
23118
23109
  break;
23119
23110
  }
23120
- message.online = reader.bool();
23111
+ message.app_url = reader.string();
23121
23112
  continue;
23122
23113
  case 11:
23123
23114
  if (tag !== 88) {
23124
23115
  break;
23125
23116
  }
23126
- message.is_disabled = reader.bool();
23117
+ message.is_bot = reader.bool();
23127
23118
  continue;
23128
23119
  case 12:
23129
23120
  if (tag !== 98) {
23130
23121
  break;
23131
23122
  }
23132
- message.joined_clans.push(reader.string());
23133
- continue;
23134
- case 13:
23135
- if (tag !== 106) {
23136
- break;
23137
- }
23138
- message.pubkey = reader.string();
23139
- continue;
23140
- case 14:
23141
- if (tag !== 114) {
23142
- break;
23143
- }
23144
- message.mezon_id = reader.string();
23145
- continue;
23146
- case 15:
23147
- if (tag !== 122) {
23148
- break;
23149
- }
23150
- message.app_token = reader.string();
23151
- continue;
23152
- case 16:
23153
- if (tag !== 130) {
23154
- break;
23155
- }
23156
- message.app_url = reader.string();
23157
- continue;
23158
- case 17:
23159
- if (tag !== 136) {
23160
- break;
23161
- }
23162
- message.is_bot = reader.bool();
23163
- continue;
23164
- case 18:
23165
- if (tag !== 146) {
23166
- break;
23167
- }
23168
23123
  message.voip_token = reader.string();
23169
23124
  continue;
23170
23125
  }
@@ -23181,16 +23136,10 @@ var UserProfileRedis = {
23181
23136
  username: isSet4(object.username) ? globalThis.String(object.username) : "",
23182
23137
  avatar: isSet4(object.avatar) ? globalThis.String(object.avatar) : "",
23183
23138
  display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
23184
- about_me: isSet4(object.about_me) ? globalThis.String(object.about_me) : "",
23185
23139
  user_status: isSet4(object.user_status) ? globalThis.String(object.user_status) : "",
23186
23140
  status: isSet4(object.status) ? globalThis.String(object.status) : "",
23187
- create_time_second: isSet4(object.create_time_second) ? globalThis.Number(object.create_time_second) : 0,
23188
23141
  fcm_tokens: globalThis.Array.isArray(object == null ? void 0 : object.fcm_tokens) ? object.fcm_tokens.map((e) => FCMTokens.fromJSON(e)) : [],
23189
- online: isSet4(object.online) ? globalThis.Boolean(object.online) : false,
23190
- is_disabled: isSet4(object.is_disabled) ? globalThis.Boolean(object.is_disabled) : false,
23191
23142
  joined_clans: globalThis.Array.isArray(object == null ? void 0 : object.joined_clans) ? object.joined_clans.map((e) => globalThis.String(e)) : [],
23192
- pubkey: isSet4(object.pubkey) ? globalThis.String(object.pubkey) : "",
23193
- mezon_id: isSet4(object.mezon_id) ? globalThis.String(object.mezon_id) : "",
23194
23143
  app_token: isSet4(object.app_token) ? globalThis.String(object.app_token) : "",
23195
23144
  app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
23196
23145
  is_bot: isSet4(object.is_bot) ? globalThis.Boolean(object.is_bot) : false,
@@ -23212,36 +23161,18 @@ var UserProfileRedis = {
23212
23161
  if (message.display_name !== "") {
23213
23162
  obj.display_name = message.display_name;
23214
23163
  }
23215
- if (message.about_me !== "") {
23216
- obj.about_me = message.about_me;
23217
- }
23218
23164
  if (message.user_status !== "") {
23219
23165
  obj.user_status = message.user_status;
23220
23166
  }
23221
23167
  if (message.status !== "") {
23222
23168
  obj.status = message.status;
23223
23169
  }
23224
- if (message.create_time_second !== 0) {
23225
- obj.create_time_second = Math.round(message.create_time_second);
23226
- }
23227
23170
  if ((_a = message.fcm_tokens) == null ? void 0 : _a.length) {
23228
23171
  obj.fcm_tokens = message.fcm_tokens.map((e) => FCMTokens.toJSON(e));
23229
23172
  }
23230
- if (message.online !== false) {
23231
- obj.online = message.online;
23232
- }
23233
- if (message.is_disabled !== false) {
23234
- obj.is_disabled = message.is_disabled;
23235
- }
23236
23173
  if ((_b = message.joined_clans) == null ? void 0 : _b.length) {
23237
23174
  obj.joined_clans = message.joined_clans;
23238
23175
  }
23239
- if (message.pubkey !== "") {
23240
- obj.pubkey = message.pubkey;
23241
- }
23242
- if (message.mezon_id !== "") {
23243
- obj.mezon_id = message.mezon_id;
23244
- }
23245
23176
  if (message.app_token !== "") {
23246
23177
  obj.app_token = message.app_token;
23247
23178
  }
@@ -23260,26 +23191,20 @@ var UserProfileRedis = {
23260
23191
  return UserProfileRedis.fromPartial(base != null ? base : {});
23261
23192
  },
23262
23193
  fromPartial(object) {
23263
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
23194
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
23264
23195
  const message = createBaseUserProfileRedis();
23265
23196
  message.user_id = (_a = object.user_id) != null ? _a : "";
23266
23197
  message.username = (_b = object.username) != null ? _b : "";
23267
23198
  message.avatar = (_c = object.avatar) != null ? _c : "";
23268
23199
  message.display_name = (_d = object.display_name) != null ? _d : "";
23269
- message.about_me = (_e = object.about_me) != null ? _e : "";
23270
- message.user_status = (_f = object.user_status) != null ? _f : "";
23271
- message.status = (_g = object.status) != null ? _g : "";
23272
- message.create_time_second = (_h = object.create_time_second) != null ? _h : 0;
23273
- message.fcm_tokens = ((_i = object.fcm_tokens) == null ? void 0 : _i.map((e) => FCMTokens.fromPartial(e))) || [];
23274
- message.online = (_j = object.online) != null ? _j : false;
23275
- message.is_disabled = (_k = object.is_disabled) != null ? _k : false;
23276
- message.joined_clans = ((_l = object.joined_clans) == null ? void 0 : _l.map((e) => e)) || [];
23277
- message.pubkey = (_m = object.pubkey) != null ? _m : "";
23278
- message.mezon_id = (_n = object.mezon_id) != null ? _n : "";
23279
- message.app_token = (_o = object.app_token) != null ? _o : "";
23280
- message.app_url = (_p = object.app_url) != null ? _p : "";
23281
- message.is_bot = (_q = object.is_bot) != null ? _q : false;
23282
- message.voip_token = (_r = object.voip_token) != null ? _r : "";
23200
+ message.user_status = (_e = object.user_status) != null ? _e : "";
23201
+ message.status = (_f = object.status) != null ? _f : "";
23202
+ message.fcm_tokens = ((_g = object.fcm_tokens) == null ? void 0 : _g.map((e) => FCMTokens.fromPartial(e))) || [];
23203
+ message.joined_clans = ((_h = object.joined_clans) == null ? void 0 : _h.map((e) => e)) || [];
23204
+ message.app_token = (_i = object.app_token) != null ? _i : "";
23205
+ message.app_url = (_j = object.app_url) != null ? _j : "";
23206
+ message.is_bot = (_k = object.is_bot) != null ? _k : false;
23207
+ message.voip_token = (_l = object.voip_token) != null ? _l : "";
23283
23208
  return message;
23284
23209
  }
23285
23210
  };
@@ -26135,6 +26060,73 @@ var TransferOwnershipEvent = {
26135
26060
  return message;
26136
26061
  }
26137
26062
  };
26063
+ function createBaseActiveArchivedThreadDM() {
26064
+ return { clan_id: "", channel_id: "" };
26065
+ }
26066
+ var ActiveArchivedThreadDM = {
26067
+ encode(message, writer = import_minimal5.default.Writer.create()) {
26068
+ if (message.clan_id !== "") {
26069
+ writer.uint32(10).string(message.clan_id);
26070
+ }
26071
+ if (message.channel_id !== "") {
26072
+ writer.uint32(18).string(message.channel_id);
26073
+ }
26074
+ return writer;
26075
+ },
26076
+ decode(input, length) {
26077
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
26078
+ let end = length === void 0 ? reader.len : reader.pos + length;
26079
+ const message = createBaseActiveArchivedThreadDM();
26080
+ while (reader.pos < end) {
26081
+ const tag = reader.uint32();
26082
+ switch (tag >>> 3) {
26083
+ case 1:
26084
+ if (tag !== 10) {
26085
+ break;
26086
+ }
26087
+ message.clan_id = reader.string();
26088
+ continue;
26089
+ case 2:
26090
+ if (tag !== 18) {
26091
+ break;
26092
+ }
26093
+ message.channel_id = reader.string();
26094
+ continue;
26095
+ }
26096
+ if ((tag & 7) === 4 || tag === 0) {
26097
+ break;
26098
+ }
26099
+ reader.skipType(tag & 7);
26100
+ }
26101
+ return message;
26102
+ },
26103
+ fromJSON(object) {
26104
+ return {
26105
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
26106
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : ""
26107
+ };
26108
+ },
26109
+ toJSON(message) {
26110
+ const obj = {};
26111
+ if (message.clan_id !== "") {
26112
+ obj.clan_id = message.clan_id;
26113
+ }
26114
+ if (message.channel_id !== "") {
26115
+ obj.channel_id = message.channel_id;
26116
+ }
26117
+ return obj;
26118
+ },
26119
+ create(base) {
26120
+ return ActiveArchivedThreadDM.fromPartial(base != null ? base : {});
26121
+ },
26122
+ fromPartial(object) {
26123
+ var _a, _b;
26124
+ const message = createBaseActiveArchivedThreadDM();
26125
+ message.clan_id = (_a = object.clan_id) != null ? _a : "";
26126
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
26127
+ return message;
26128
+ }
26129
+ };
26138
26130
  function toTimestamp2(date) {
26139
26131
  const seconds = Math.trunc(date.getTime() / 1e3);
26140
26132
  const nanos = date.getTime() % 1e3 * 1e6;