mezon-js 2.11.12 → 2.11.13

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.gen.ts CHANGED
@@ -1300,6 +1300,16 @@ export interface ApiEmojiListedResponse {
1300
1300
  emoji_list?: Array<ApiClanEmoji>;
1301
1301
  }
1302
1302
 
1303
+ /** */
1304
+ export interface ApiEmojiRecent {
1305
+ //ID of the emoji.
1306
+ emoji_recents_id?: string;
1307
+ //
1308
+ emoji_id?: string;
1309
+ //The UNIX time (for gRPC clients) or ISO string (for REST clients) when the emoji was created.
1310
+ update_time?: string;
1311
+ }
1312
+
1303
1313
  /** */
1304
1314
  export interface ApiEventList {
1305
1315
  //A list of event.
@@ -1630,6 +1640,8 @@ export interface ApiMessageReaction {
1630
1640
  message_id: string;
1631
1641
  //
1632
1642
  topic_id?: string;
1643
+ //
1644
+ emoji_recent_id?: string;
1633
1645
  }
1634
1646
 
1635
1647
  export interface ApiListChannelAppsResponse {
@@ -2732,6 +2744,13 @@ export interface ApiWithdrawTokenRequest {
2732
2744
  amount?: number;
2733
2745
  }
2734
2746
 
2747
+ /** A collection of zero or more notifications. */
2748
+ export interface MezonapiEmojiRecentList {
2749
+ //Collection of emojiRecents.
2750
+ emoji_recents?: Array<ApiEmojiRecent>;
2751
+ }
2752
+
2753
+
2735
2754
  /** Represents an event to be passed through the server to registered event handlers. */
2736
2755
  export interface MezonapiEvent {
2737
2756
  //True if the event came directly from a client call, false otherwise.
@@ -3083,11 +3102,7 @@ export interface ApiMezonOauthClient {
3083
3102
  /** */
3084
3103
  export interface ApiCreateHashChannelAppsResponse {
3085
3104
  //
3086
- hash?: string;
3087
- //
3088
- user_id?: string;
3089
- //
3090
- auth_date?: string;
3105
+ web_app_data?: string;
3091
3106
  }
3092
3107
 
3093
3108
  export class MezonApi {
@@ -6674,6 +6689,37 @@ export class MezonApi {
6674
6689
  ]);
6675
6690
  }
6676
6691
 
6692
+ /** get list emoji recent by user id */
6693
+ emojiRecentList(bearerToken: string,
6694
+ options: any = {}): Promise<MezonapiEmojiRecentList> {
6695
+
6696
+ const urlPath = "/v2/emojirecents";
6697
+ const queryParams = new Map<string, any>();
6698
+
6699
+ let bodyJson : string = "";
6700
+
6701
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
6702
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
6703
+ if (bearerToken) {
6704
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
6705
+ }
6706
+
6707
+ return Promise.race([
6708
+ fetch(fullUrl, fetchOptions).then((response) => {
6709
+ if (response.status == 204) {
6710
+ return response;
6711
+ } else if (response.status >= 200 && response.status < 300) {
6712
+ return response.json();
6713
+ } else {
6714
+ throw response;
6715
+ }
6716
+ }),
6717
+ new Promise((_, reject) =>
6718
+ setTimeout(reject, this.timeoutMs, "Request timed out.")
6719
+ ),
6720
+ ]);
6721
+ }
6722
+
6677
6723
  /** get list emoji by user id */
6678
6724
  getListEmojisByUserId(
6679
6725
  bearerToken: string,
package/client.ts CHANGED
@@ -165,6 +165,7 @@ import {
165
165
  ApiMezonOauthClientList,
166
166
  ApiMezonOauthClient,
167
167
  ApiCreateHashChannelAppsResponse,
168
+ MezonapiEmojiRecentList,
168
169
  } from "./api.gen";
169
170
 
170
171
  import { Session } from "./session";
@@ -3955,6 +3956,24 @@ export class Client {
3955
3956
  });
3956
3957
  }
3957
3958
 
3959
+ async emojiRecentList(
3960
+ session: Session
3961
+ ): Promise<MezonapiEmojiRecentList> {
3962
+ if (
3963
+ this.autoRefreshSession &&
3964
+ session.refresh_token &&
3965
+ session.isexpired(Date.now() / 1000)
3966
+ ) {
3967
+ await this.sessionRefresh(session);
3968
+ }
3969
+
3970
+ return this.apiClient
3971
+ .emojiRecentList(session.token)
3972
+ .then((response: any) => {
3973
+ return Promise.resolve(response);
3974
+ });
3975
+ }
3976
+
3958
3977
  async getListStickersByUserId(
3959
3978
  session: Session
3960
3979
  ): Promise<ApiStickerListedResponse> {
package/dist/api.gen.d.ts CHANGED
@@ -744,6 +744,12 @@ export interface ApiEmojiListedResponse {
744
744
  emoji_list?: Array<ApiClanEmoji>;
745
745
  }
746
746
  /** */
747
+ export interface ApiEmojiRecent {
748
+ emoji_recents_id?: string;
749
+ emoji_id?: string;
750
+ update_time?: string;
751
+ }
752
+ /** */
747
753
  export interface ApiEventList {
748
754
  events?: Array<ApiEventManagement>;
749
755
  }
@@ -940,6 +946,7 @@ export interface ApiMessageReaction {
940
946
  /** The message that user react */
941
947
  message_id: string;
942
948
  topic_id?: string;
949
+ emoji_recent_id?: string;
943
950
  }
944
951
  export interface ApiListChannelAppsResponse {
945
952
  channel_apps?: Array<ApiChannelAppResponse>;
@@ -1571,6 +1578,10 @@ export interface ApiWebhookListResponse {
1571
1578
  export interface ApiWithdrawTokenRequest {
1572
1579
  amount?: number;
1573
1580
  }
1581
+ /** A collection of zero or more notifications. */
1582
+ export interface MezonapiEmojiRecentList {
1583
+ emoji_recents?: Array<ApiEmojiRecent>;
1584
+ }
1574
1585
  /** Represents an event to be passed through the server to registered event handlers. */
1575
1586
  export interface MezonapiEvent {
1576
1587
  external?: boolean;
@@ -1770,9 +1781,7 @@ export interface ApiMezonOauthClient {
1770
1781
  }
1771
1782
  /** */
1772
1783
  export interface ApiCreateHashChannelAppsResponse {
1773
- hash?: string;
1774
- user_id?: string;
1775
- auth_date?: string;
1784
+ web_app_data?: string;
1776
1785
  }
1777
1786
  export declare class MezonApi {
1778
1787
  readonly serverKey: string;
@@ -1953,6 +1962,8 @@ export declare class MezonApi {
1953
1962
  deleteClanEmojiById(bearerToken: string, id: string, clanId?: string, emojiLabel?: string, options?: any): Promise<any>;
1954
1963
  /** Update ClanEmoj By id */
1955
1964
  updateClanEmojiById(bearerToken: string, id: string, body: MezonUpdateClanEmojiByIdBody, options?: any): Promise<any>;
1965
+ /** get list emoji recent by user id */
1966
+ emojiRecentList(bearerToken: string, options?: any): Promise<MezonapiEmojiRecentList>;
1956
1967
  /** get list emoji by user id */
1957
1968
  getListEmojisByUserId(bearerToken: string, options?: any): Promise<ApiEmojiListedResponse>;
1958
1969
  /** Search message from elasticsearch service. */
package/dist/client.d.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ApiAccount, ApiAccountMezon, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiListStreamingChannelsResponse, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiWithdrawTokenRequest, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, ApiTransactionDetail, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiHandleParticipantMeetStateRequest, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse } from "./api.gen";
16
+ import { ApiAccount, ApiAccountMezon, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiListStreamingChannelsResponse, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiWithdrawTokenRequest, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, ApiTransactionDetail, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiHandleParticipantMeetStateRequest, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, MezonapiEmojiRecentList } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { Socket } from "./socket";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -591,6 +591,7 @@ export declare class Client {
591
591
  listChannelByUserId(session: Session): Promise<ApiChannelDescList>;
592
592
  listChannelUsersUC(session: Session, channel_id: string, limit: number): Promise<ApiAllUsersAddChannelResponse>;
593
593
  getListEmojisByUserId(session: Session): Promise<ApiEmojiListedResponse>;
594
+ emojiRecentList(session: Session): Promise<MezonapiEmojiRecentList>;
594
595
  getListStickersByUserId(session: Session): Promise<ApiStickerListedResponse>;
595
596
  listUserClansByUserId(session: Session): Promise<ApiAllUserClans>;
596
597
  listRoles(session: Session, clanId?: string, limit?: string, state?: string, cursor?: string): Promise<ApiRoleListEventResponse>;
@@ -3529,6 +3529,31 @@ var MezonApi = class {
3529
3529
  )
3530
3530
  ]);
3531
3531
  }
3532
+ /** get list emoji recent by user id */
3533
+ emojiRecentList(bearerToken, options = {}) {
3534
+ const urlPath = "/v2/emojirecents";
3535
+ const queryParams = /* @__PURE__ */ new Map();
3536
+ let bodyJson = "";
3537
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3538
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
3539
+ if (bearerToken) {
3540
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3541
+ }
3542
+ return Promise.race([
3543
+ fetch(fullUrl, fetchOptions).then((response) => {
3544
+ if (response.status == 204) {
3545
+ return response;
3546
+ } else if (response.status >= 200 && response.status < 300) {
3547
+ return response.json();
3548
+ } else {
3549
+ throw response;
3550
+ }
3551
+ }),
3552
+ new Promise(
3553
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
3554
+ )
3555
+ ]);
3556
+ }
3532
3557
  /** get list emoji by user id */
3533
3558
  getListEmojisByUserId(bearerToken, options = {}) {
3534
3559
  const urlPath = "/v2/emojis";
@@ -8089,7 +8114,7 @@ var _DefaultSocket = class _DefaultSocket {
8089
8114
  return response.channel_message_ack;
8090
8115
  });
8091
8116
  }
8092
- writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete, topic_id) {
8117
+ writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete, topic_id, emoji_recent_id) {
8093
8118
  return __async(this, null, function* () {
8094
8119
  const response = yield this.send({
8095
8120
  message_reaction_event: {
@@ -8104,7 +8129,8 @@ var _DefaultSocket = class _DefaultSocket {
8104
8129
  count,
8105
8130
  message_sender_id,
8106
8131
  action: action_delete,
8107
- topic_id
8132
+ topic_id,
8133
+ emoji_recent_id
8108
8134
  }
8109
8135
  });
8110
8136
  return response.message_reaction_event;
@@ -10392,6 +10418,16 @@ var Client = class {
10392
10418
  });
10393
10419
  });
10394
10420
  }
10421
+ emojiRecentList(session) {
10422
+ return __async(this, null, function* () {
10423
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
10424
+ yield this.sessionRefresh(session);
10425
+ }
10426
+ return this.apiClient.emojiRecentList(session.token).then((response) => {
10427
+ return Promise.resolve(response);
10428
+ });
10429
+ });
10430
+ }
10395
10431
  getListStickersByUserId(session) {
10396
10432
  return __async(this, null, function* () {
10397
10433
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
@@ -3495,6 +3495,31 @@ var MezonApi = class {
3495
3495
  )
3496
3496
  ]);
3497
3497
  }
3498
+ /** get list emoji recent by user id */
3499
+ emojiRecentList(bearerToken, options = {}) {
3500
+ const urlPath = "/v2/emojirecents";
3501
+ const queryParams = /* @__PURE__ */ new Map();
3502
+ let bodyJson = "";
3503
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
3504
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
3505
+ if (bearerToken) {
3506
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
3507
+ }
3508
+ return Promise.race([
3509
+ fetch(fullUrl, fetchOptions).then((response) => {
3510
+ if (response.status == 204) {
3511
+ return response;
3512
+ } else if (response.status >= 200 && response.status < 300) {
3513
+ return response.json();
3514
+ } else {
3515
+ throw response;
3516
+ }
3517
+ }),
3518
+ new Promise(
3519
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
3520
+ )
3521
+ ]);
3522
+ }
3498
3523
  /** get list emoji by user id */
3499
3524
  getListEmojisByUserId(bearerToken, options = {}) {
3500
3525
  const urlPath = "/v2/emojis";
@@ -8055,7 +8080,7 @@ var _DefaultSocket = class _DefaultSocket {
8055
8080
  return response.channel_message_ack;
8056
8081
  });
8057
8082
  }
8058
- writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete, topic_id) {
8083
+ writeMessageReaction(id, clan_id, channel_id, mode, is_public, message_id, emoji_id, emoji, count, message_sender_id, action_delete, topic_id, emoji_recent_id) {
8059
8084
  return __async(this, null, function* () {
8060
8085
  const response = yield this.send({
8061
8086
  message_reaction_event: {
@@ -8070,7 +8095,8 @@ var _DefaultSocket = class _DefaultSocket {
8070
8095
  count,
8071
8096
  message_sender_id,
8072
8097
  action: action_delete,
8073
- topic_id
8098
+ topic_id,
8099
+ emoji_recent_id
8074
8100
  }
8075
8101
  });
8076
8102
  return response.message_reaction_event;
@@ -10358,6 +10384,16 @@ var Client = class {
10358
10384
  });
10359
10385
  });
10360
10386
  }
10387
+ emojiRecentList(session) {
10388
+ return __async(this, null, function* () {
10389
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
10390
+ yield this.sessionRefresh(session);
10391
+ }
10392
+ return this.apiClient.emojiRecentList(session.token).then((response) => {
10393
+ return Promise.resolve(response);
10394
+ });
10395
+ });
10396
+ }
10361
10397
  getListStickersByUserId(session) {
10362
10398
  return __async(this, null, function* () {
10363
10399
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
package/dist/socket.d.ts CHANGED
@@ -750,7 +750,7 @@ export interface Socket {
750
750
  /** Send message typing */
751
751
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
752
752
  /** Send message reaction */
753
- writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean, topic_id?: string): Promise<ApiMessageReaction>;
753
+ writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean, topic_id?: string, emoji_recent_id?: string): Promise<ApiMessageReaction>;
754
754
  /** Send last seen message */
755
755
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
756
756
  /** Send last pin message */
@@ -951,7 +951,7 @@ export declare class DefaultSocket implements Socket {
951
951
  updateChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, hideEditted?: boolean, topic_id?: string, is_update_msg_topic?: boolean): Promise<ChannelMessageAck>;
952
952
  updateStatus(status?: string): Promise<void>;
953
953
  writeChatMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, content: any, mentions?: Array<ApiMessageMention>, attachments?: Array<ApiMessageAttachment>, references?: Array<ApiMessageRef>, anonymous_message?: boolean, mention_everyone?: Boolean, avatar?: string, code?: number, topic_id?: string): Promise<ChannelMessageAck>;
954
- writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean, topic_id?: string): Promise<ApiMessageReaction>;
954
+ writeMessageReaction(id: string, clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, emoji_id: string, emoji: string, count: number, message_sender_id: string, action_delete: boolean, topic_id?: string, emoji_recent_id?: string): Promise<ApiMessageReaction>;
955
955
  writeMessageTyping(clan_id: string, channel_id: string, mode: number, is_public: boolean): Promise<MessageTypingEvent>;
956
956
  writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number): Promise<LastSeenMessageEvent>;
957
957
  writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.11.12",
4
+ "version": "2.11.13",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
package/socket.ts CHANGED
@@ -1128,7 +1128,8 @@ export interface Socket {
1128
1128
  count: number,
1129
1129
  message_sender_id: string,
1130
1130
  action_delete: boolean,
1131
- topic_id?: string
1131
+ topic_id?: string,
1132
+ emoji_recent_id?: string
1132
1133
  ): Promise<ApiMessageReaction>;
1133
1134
 
1134
1135
  /** Send last seen message */
@@ -2334,7 +2335,8 @@ export class DefaultSocket implements Socket {
2334
2335
  count: number,
2335
2336
  message_sender_id: string,
2336
2337
  action_delete: boolean,
2337
- topic_id?: string
2338
+ topic_id?: string,
2339
+ emoji_recent_id?: string
2338
2340
  ): Promise<ApiMessageReaction> {
2339
2341
  const response = await this.send({
2340
2342
  message_reaction_event: {
@@ -2350,6 +2352,7 @@ export class DefaultSocket implements Socket {
2350
2352
  message_sender_id: message_sender_id,
2351
2353
  action: action_delete,
2352
2354
  topic_id: topic_id,
2355
+ emoji_recent_id: emoji_recent_id
2353
2356
  },
2354
2357
  });
2355
2358
  return response.message_reaction_event;