mezon-sdk 2.7.75 → 2.7.76

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.
@@ -9,7 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.ChannelUpdatedEvent = exports.StickerDeleteEvent = exports.StickerUpdateEvent = exports.StickerCreateEvent = exports.ClanDeletedEvent = exports.ChannelDeletedEvent = exports.RoleEvent = exports.ChannelCreatedEvent = exports.StreamingEndedEvent = exports.StreamingStartedEvent = exports.StreamingJoinedEvent = exports.StreamingLeavedEvent = exports.VoiceEndedEvent = exports.VoiceStartedEvent = exports.VoiceJoinedEvent = exports.VoiceLeavedEvent = exports.MessageTypingEvent = exports.LastSeenMessageEvent = exports.LastPinMessageEvent = exports.StatusPresenceEvent = exports.StatusFollow = exports.Status = exports.Pong = exports.Ping = exports.Notifications = exports.Error_ContextEntry = exports.Error = exports.ChannelPresenceEvent = exports.ChannelMessageRemove = exports.ChannelMessageUpdate = exports.ChannelMessageSend = exports.ChannelMessageAck = exports.ChannelLeave = exports.ChannelJoin = exports.ClanJoin = exports.Channel = exports.ClanEmoji = exports.ChannelDescription = exports.HashtagDm = exports.PermissionRoleChannel = exports.RoleAssignedEvent = exports.AddClanUserEvent = exports.WebrtcSignalingFwd = exports.IncomingCallPush = exports.FollowEvent = exports.Envelope = exports.error_CodeToJSON = exports.error_CodeFromJSON = exports.Error_Code = exports.protobufPackage = void 0;
12
- exports.SdTopicEvent = exports.PTTJoinedEvent = exports.PTTLeavedEvent = exports.DropdownBoxSelected = exports.ListActivity = exports.TalkPTTChannel = exports.JoinPTTChannel = exports.UnmuteEvent = exports.MessageButtonClicked = exports.PermissionChangedEvent = exports.PermissionSetEvent = exports.EventEmoji = exports.NotificationChannelCategorySetting = exports.CheckNameExistedEvent = exports.FCMTokens = exports.UserProfileRedis = exports.UserProfileUpdatedEvent = exports.ClanProfileUpdatedEvent = exports.ClanUpdatedEvent = exports.UserClanRemoved = exports.UserChannelRemoved = exports.UserChannelAdded = exports.CustomStatusEvent = exports.UserPresence = exports.StreamPresenceEvent = exports.StreamData = exports.Stream = exports.StatusUpdate = exports.StatusUnfollow = void 0;
12
+ exports.ChannelAppEvent = exports.SdTopicEvent = exports.PTTJoinedEvent = exports.PTTLeavedEvent = exports.DropdownBoxSelected = exports.ListActivity = exports.TalkPTTChannel = exports.JoinPTTChannel = exports.UnmuteEvent = exports.MessageButtonClicked = exports.PermissionChangedEvent = exports.PermissionSetEvent = exports.EventEmoji = exports.NotificationChannelCategorySetting = exports.CheckNameExistedEvent = exports.FCMTokens = exports.UserProfileRedis = exports.UserProfileUpdatedEvent = exports.ClanProfileUpdatedEvent = exports.ClanUpdatedEvent = exports.UserClanRemoved = exports.UserChannelRemoved = exports.UserChannelAdded = exports.CustomStatusEvent = exports.UserPresence = exports.StreamPresenceEvent = exports.StreamData = exports.Stream = exports.StatusUpdate = exports.StatusUnfollow = void 0;
13
13
  /* eslint-disable */
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
15
  const api_1 = require("../api/api");
@@ -167,6 +167,7 @@ function createBaseEnvelope() {
167
167
  ptt_leaved_event: undefined,
168
168
  sd_topic_event: undefined,
169
169
  follow_event: undefined,
170
+ channel_app_event: undefined,
170
171
  };
171
172
  }
172
173
  exports.Envelope = {
@@ -384,6 +385,9 @@ exports.Envelope = {
384
385
  if (message.follow_event !== undefined) {
385
386
  exports.FollowEvent.encode(message.follow_event, writer.uint32(570).fork()).ldelim();
386
387
  }
388
+ if (message.channel_app_event !== undefined) {
389
+ exports.ChannelAppEvent.encode(message.channel_app_event, writer.uint32(578).fork()).ldelim();
390
+ }
387
391
  return writer;
388
392
  },
389
393
  decode(input, length) {
@@ -819,6 +823,12 @@ exports.Envelope = {
819
823
  }
820
824
  message.follow_event = exports.FollowEvent.decode(reader, reader.uint32());
821
825
  continue;
826
+ case 72:
827
+ if (tag !== 578) {
828
+ break;
829
+ }
830
+ message.channel_app_event = exports.ChannelAppEvent.decode(reader, reader.uint32());
831
+ continue;
822
832
  }
823
833
  if ((tag & 7) === 4 || tag === 0) {
824
834
  break;
@@ -988,6 +998,9 @@ exports.Envelope = {
988
998
  ptt_leaved_event: isSet(object.ptt_leaved_event) ? exports.PTTLeavedEvent.fromJSON(object.ptt_leaved_event) : undefined,
989
999
  sd_topic_event: isSet(object.sd_topic_event) ? exports.SdTopicEvent.fromJSON(object.sd_topic_event) : undefined,
990
1000
  follow_event: isSet(object.follow_event) ? exports.FollowEvent.fromJSON(object.follow_event) : undefined,
1001
+ channel_app_event: isSet(object.channel_app_event)
1002
+ ? exports.ChannelAppEvent.fromJSON(object.channel_app_event)
1003
+ : undefined,
991
1004
  };
992
1005
  },
993
1006
  toJSON(message) {
@@ -1205,6 +1218,9 @@ exports.Envelope = {
1205
1218
  if (message.follow_event !== undefined) {
1206
1219
  obj.follow_event = exports.FollowEvent.toJSON(message.follow_event);
1207
1220
  }
1221
+ if (message.channel_app_event !== undefined) {
1222
+ obj.channel_app_event = exports.ChannelAppEvent.toJSON(message.channel_app_event);
1223
+ }
1208
1224
  return obj;
1209
1225
  },
1210
1226
  create(base) {
@@ -1440,6 +1456,9 @@ exports.Envelope = {
1440
1456
  message.follow_event = (object.follow_event !== undefined && object.follow_event !== null)
1441
1457
  ? exports.FollowEvent.fromPartial(object.follow_event)
1442
1458
  : undefined;
1459
+ message.channel_app_event = (object.channel_app_event !== undefined && object.channel_app_event !== null)
1460
+ ? exports.ChannelAppEvent.fromPartial(object.channel_app_event)
1461
+ : undefined;
1443
1462
  return message;
1444
1463
  },
1445
1464
  };
@@ -9458,6 +9477,115 @@ exports.SdTopicEvent = {
9458
9477
  return message;
9459
9478
  },
9460
9479
  };
9480
+ function createBaseChannelAppEvent() {
9481
+ return { user_id: "", username: "", clan_id: "", channel_id: "", action: 0 };
9482
+ }
9483
+ exports.ChannelAppEvent = {
9484
+ encode(message, writer = minimal_1.default.Writer.create()) {
9485
+ if (message.user_id !== "") {
9486
+ writer.uint32(10).string(message.user_id);
9487
+ }
9488
+ if (message.username !== "") {
9489
+ writer.uint32(18).string(message.username);
9490
+ }
9491
+ if (message.clan_id !== "") {
9492
+ writer.uint32(26).string(message.clan_id);
9493
+ }
9494
+ if (message.channel_id !== "") {
9495
+ writer.uint32(34).string(message.channel_id);
9496
+ }
9497
+ if (message.action !== 0) {
9498
+ writer.uint32(40).int32(message.action);
9499
+ }
9500
+ return writer;
9501
+ },
9502
+ decode(input, length) {
9503
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
9504
+ let end = length === undefined ? reader.len : reader.pos + length;
9505
+ const message = createBaseChannelAppEvent();
9506
+ while (reader.pos < end) {
9507
+ const tag = reader.uint32();
9508
+ switch (tag >>> 3) {
9509
+ case 1:
9510
+ if (tag !== 10) {
9511
+ break;
9512
+ }
9513
+ message.user_id = reader.string();
9514
+ continue;
9515
+ case 2:
9516
+ if (tag !== 18) {
9517
+ break;
9518
+ }
9519
+ message.username = reader.string();
9520
+ continue;
9521
+ case 3:
9522
+ if (tag !== 26) {
9523
+ break;
9524
+ }
9525
+ message.clan_id = reader.string();
9526
+ continue;
9527
+ case 4:
9528
+ if (tag !== 34) {
9529
+ break;
9530
+ }
9531
+ message.channel_id = reader.string();
9532
+ continue;
9533
+ case 5:
9534
+ if (tag !== 40) {
9535
+ break;
9536
+ }
9537
+ message.action = reader.int32();
9538
+ continue;
9539
+ }
9540
+ if ((tag & 7) === 4 || tag === 0) {
9541
+ break;
9542
+ }
9543
+ reader.skipType(tag & 7);
9544
+ }
9545
+ return message;
9546
+ },
9547
+ fromJSON(object) {
9548
+ return {
9549
+ user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
9550
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
9551
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
9552
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
9553
+ action: isSet(object.action) ? globalThis.Number(object.action) : 0,
9554
+ };
9555
+ },
9556
+ toJSON(message) {
9557
+ const obj = {};
9558
+ if (message.user_id !== "") {
9559
+ obj.user_id = message.user_id;
9560
+ }
9561
+ if (message.username !== "") {
9562
+ obj.username = message.username;
9563
+ }
9564
+ if (message.clan_id !== "") {
9565
+ obj.clan_id = message.clan_id;
9566
+ }
9567
+ if (message.channel_id !== "") {
9568
+ obj.channel_id = message.channel_id;
9569
+ }
9570
+ if (message.action !== 0) {
9571
+ obj.action = Math.round(message.action);
9572
+ }
9573
+ return obj;
9574
+ },
9575
+ create(base) {
9576
+ return exports.ChannelAppEvent.fromPartial(base !== null && base !== void 0 ? base : {});
9577
+ },
9578
+ fromPartial(object) {
9579
+ var _a, _b, _c, _d, _e;
9580
+ const message = createBaseChannelAppEvent();
9581
+ message.user_id = (_a = object.user_id) !== null && _a !== void 0 ? _a : "";
9582
+ message.username = (_b = object.username) !== null && _b !== void 0 ? _b : "";
9583
+ message.clan_id = (_c = object.clan_id) !== null && _c !== void 0 ? _c : "";
9584
+ message.channel_id = (_d = object.channel_id) !== null && _d !== void 0 ? _d : "";
9585
+ message.action = (_e = object.action) !== null && _e !== void 0 ? _e : 0;
9586
+ return message;
9587
+ },
9588
+ };
9461
9589
  function toTimestamp(date) {
9462
9590
  const seconds = Math.trunc(date.getTime() / 1000);
9463
9591
  const nanos = (date.getTime() % 1000) * 1000000;