mezon-js 2.13.10 → 2.13.12

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
@@ -2720,6 +2720,8 @@ export interface ApiUser {
2720
2720
  mezon_id?: string;
2721
2721
  // list nick name
2722
2722
  list_nick_names?: Array<string>;
2723
+ // phone number
2724
+ phone_number?: number;
2723
2725
  }
2724
2726
 
2725
2727
  /** */
@@ -3353,6 +3355,12 @@ export interface ApiListClanDiscover {
3353
3355
  page_count?: number;
3354
3356
  }
3355
3357
 
3358
+ /** */
3359
+ export interface ApiListClanUnreadMsgIndicatorResponse {
3360
+ //
3361
+ has_unread_message?: boolean;
3362
+ }
3363
+
3356
3364
  /** */
3357
3365
  export interface ApiClanDiscoverRequest {
3358
3366
  //
@@ -5495,6 +5503,42 @@ export class MezonApi {
5495
5503
  ]);
5496
5504
  }
5497
5505
 
5506
+ /** List clans */
5507
+ listClanUnreadMsgIndicator(bearerToken: string,
5508
+ clanId:string,
5509
+ options: any = {}): Promise<ApiListClanUnreadMsgIndicatorResponse> {
5510
+
5511
+ if (clanId === null || clanId === undefined) {
5512
+ throw new Error("'clanId' is a required parameter but is null or undefined.");
5513
+ }
5514
+ const urlPath = "/v2/{clanId}/indicator"
5515
+ .replace("{clanId}", encodeURIComponent(String(clanId)));
5516
+ const queryParams = new Map<string, any>();
5517
+
5518
+ let bodyJson : string = "";
5519
+
5520
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5521
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
5522
+ if (bearerToken) {
5523
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5524
+ }
5525
+
5526
+ return Promise.race([
5527
+ fetch(fullUrl, fetchOptions).then((response) => {
5528
+ if (response.status == 204) {
5529
+ return response;
5530
+ } else if (response.status >= 200 && response.status < 300) {
5531
+ return response.json();
5532
+ } else {
5533
+ throw response;
5534
+ }
5535
+ }),
5536
+ new Promise((_, reject) =>
5537
+ setTimeout(reject, this.timeoutMs, "Request timed out.")
5538
+ ),
5539
+ ]);
5540
+ }
5541
+
5498
5542
  /** List clans */
5499
5543
  listClanDescs(
5500
5544
  bearerToken: string,
package/client.ts CHANGED
@@ -176,6 +176,7 @@ import {
176
176
  ApiLinkAccountMezon,
177
177
  ApiUser,
178
178
  ApiFriend,
179
+ ApiListClanUnreadMsgIndicatorResponse,
179
180
  } from "./api.gen";
180
181
 
181
182
  import { Session } from "./session";
@@ -1489,6 +1490,26 @@ export class Client {
1489
1490
  });
1490
1491
  }
1491
1492
 
1493
+ /** List clans */
1494
+ async listClanUnreadMsgIndicator(
1495
+ session: Session,
1496
+ clanId: string
1497
+ ): Promise<ApiListClanUnreadMsgIndicatorResponse> {
1498
+ if (
1499
+ this.autoRefreshSession &&
1500
+ session.refresh_token &&
1501
+ session.isexpired(Date.now() / 1000)
1502
+ ) {
1503
+ await this.sessionRefresh(session);
1504
+ }
1505
+
1506
+ return this.apiClient
1507
+ .listClanUnreadMsgIndicator(session.token, clanId)
1508
+ .then((response: ApiListClanUnreadMsgIndicatorResponse) => {
1509
+ return Promise.resolve(response);
1510
+ });
1511
+ }
1512
+
1492
1513
  /** List clans */
1493
1514
  async listClanDescs(
1494
1515
  session: Session,
package/dist/api.gen.d.ts CHANGED
@@ -1554,6 +1554,7 @@ export interface ApiUser {
1554
1554
  username?: string;
1555
1555
  mezon_id?: string;
1556
1556
  list_nick_names?: Array<string>;
1557
+ phone_number?: number;
1557
1558
  }
1558
1559
  /** */
1559
1560
  export interface ApiUserActivity {
@@ -1920,6 +1921,10 @@ export interface ApiListClanDiscover {
1920
1921
  page_count?: number;
1921
1922
  }
1922
1923
  /** */
1924
+ export interface ApiListClanUnreadMsgIndicatorResponse {
1925
+ has_unread_message?: boolean;
1926
+ }
1927
+ /** */
1923
1928
  export interface ApiClanDiscoverRequest {
1924
1929
  clan_id?: string;
1925
1930
  item_per_page?: number;
@@ -2056,6 +2061,8 @@ export declare class MezonApi {
2056
2061
  /** List all users that are part of a channel. */
2057
2062
  listChannelVoiceUsers(bearerToken: string, clanId?: string, channelId?: string, channelType?: number, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiVoiceChannelUserList>;
2058
2063
  /** List clans */
2064
+ listClanUnreadMsgIndicator(bearerToken: string, clanId: string, options?: any): Promise<ApiListClanUnreadMsgIndicatorResponse>;
2065
+ /** List clans */
2059
2066
  listClanDescs(bearerToken: string, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiClanDescList>;
2060
2067
  /** Create a clan */
2061
2068
  createClanDesc(bearerToken: string, body: ApiCreateClanDescRequest, options?: any): Promise<ApiClanDesc>;
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, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, 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, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, ApiTransactionDetail, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, ApiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest, ApiUnlockedItemRequest, ApiForSaleItemList, ApiUnlockedItemResponse, ApiIsFollowerResponse, ApiIsFollowerRequest, ApiTransferOwnershipRequest, ApiMeetParticipantRequest, ApiStoreWalletKeyRequest, ApiLinkAccountConfirmRequest, ApiLinkAccountMezon, ApiUser, ApiFriend } from "./api.gen";
16
+ import { ApiAccount, ApiAccountMezon, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, 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, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, ApiTransactionDetail, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, ApiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest, ApiUnlockedItemRequest, ApiForSaleItemList, ApiUnlockedItemResponse, ApiIsFollowerResponse, ApiIsFollowerRequest, ApiTransferOwnershipRequest, ApiMeetParticipantRequest, ApiStoreWalletKeyRequest, ApiLinkAccountConfirmRequest, ApiLinkAccountMezon, ApiUser, ApiFriend, ApiListClanUnreadMsgIndicatorResponse } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { Socket } from "./socket";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -313,6 +313,8 @@ export declare class Client {
313
313
  /** List channels. */
314
314
  listChannelDescs(session: Session, limit?: number, state?: number, cursor?: string, clanId?: string, channelType?: number, isMobile?: boolean): Promise<ApiChannelDescList>;
315
315
  /** List clans */
316
+ listClanUnreadMsgIndicator(session: Session, clanId: string): Promise<ApiListClanUnreadMsgIndicatorResponse>;
317
+ /** List clans */
316
318
  listClanDescs(session: Session, limit?: number, state?: number, cursor?: string): Promise<ApiClanDescList>;
317
319
  /** List categories. */
318
320
  listCategoryDescs(session: Session, clanId: string, creatorId?: string, categoryName?: string): Promise<ApiCategoryDescList>;
@@ -2357,6 +2357,34 @@ var MezonApi = class {
2357
2357
  ]);
2358
2358
  }
2359
2359
  /** List clans */
2360
+ listClanUnreadMsgIndicator(bearerToken, clanId, options = {}) {
2361
+ if (clanId === null || clanId === void 0) {
2362
+ throw new Error("'clanId' is a required parameter but is null or undefined.");
2363
+ }
2364
+ const urlPath = "/v2/{clanId}/indicator".replace("{clanId}", encodeURIComponent(String(clanId)));
2365
+ const queryParams = /* @__PURE__ */ new Map();
2366
+ let bodyJson = "";
2367
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
2368
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
2369
+ if (bearerToken) {
2370
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2371
+ }
2372
+ return Promise.race([
2373
+ fetch(fullUrl, fetchOptions).then((response) => {
2374
+ if (response.status == 204) {
2375
+ return response;
2376
+ } else if (response.status >= 200 && response.status < 300) {
2377
+ return response.json();
2378
+ } else {
2379
+ throw response;
2380
+ }
2381
+ }),
2382
+ new Promise(
2383
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
2384
+ )
2385
+ ]);
2386
+ }
2387
+ /** List clans */
2360
2388
  listClanDescs(bearerToken, limit, state, cursor, options = {}) {
2361
2389
  const urlPath = "/v2/clandesc";
2362
2390
  const queryParams = /* @__PURE__ */ new Map();
@@ -8991,6 +9019,17 @@ var Client = class {
8991
9019
  });
8992
9020
  }
8993
9021
  /** List clans */
9022
+ listClanUnreadMsgIndicator(session, clanId) {
9023
+ return __async(this, null, function* () {
9024
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
9025
+ yield this.sessionRefresh(session);
9026
+ }
9027
+ return this.apiClient.listClanUnreadMsgIndicator(session.token, clanId).then((response) => {
9028
+ return Promise.resolve(response);
9029
+ });
9030
+ });
9031
+ }
9032
+ /** List clans */
8994
9033
  listClanDescs(session, limit, state, cursor) {
8995
9034
  return __async(this, null, function* () {
8996
9035
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
@@ -2323,6 +2323,34 @@ var MezonApi = class {
2323
2323
  ]);
2324
2324
  }
2325
2325
  /** List clans */
2326
+ listClanUnreadMsgIndicator(bearerToken, clanId, options = {}) {
2327
+ if (clanId === null || clanId === void 0) {
2328
+ throw new Error("'clanId' is a required parameter but is null or undefined.");
2329
+ }
2330
+ const urlPath = "/v2/{clanId}/indicator".replace("{clanId}", encodeURIComponent(String(clanId)));
2331
+ const queryParams = /* @__PURE__ */ new Map();
2332
+ let bodyJson = "";
2333
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
2334
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
2335
+ if (bearerToken) {
2336
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
2337
+ }
2338
+ return Promise.race([
2339
+ fetch(fullUrl, fetchOptions).then((response) => {
2340
+ if (response.status == 204) {
2341
+ return response;
2342
+ } else if (response.status >= 200 && response.status < 300) {
2343
+ return response.json();
2344
+ } else {
2345
+ throw response;
2346
+ }
2347
+ }),
2348
+ new Promise(
2349
+ (_, reject) => setTimeout(reject, this.timeoutMs, "Request timed out.")
2350
+ )
2351
+ ]);
2352
+ }
2353
+ /** List clans */
2326
2354
  listClanDescs(bearerToken, limit, state, cursor, options = {}) {
2327
2355
  const urlPath = "/v2/clandesc";
2328
2356
  const queryParams = /* @__PURE__ */ new Map();
@@ -8957,6 +8985,17 @@ var Client = class {
8957
8985
  });
8958
8986
  }
8959
8987
  /** List clans */
8988
+ listClanUnreadMsgIndicator(session, clanId) {
8989
+ return __async(this, null, function* () {
8990
+ if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
8991
+ yield this.sessionRefresh(session);
8992
+ }
8993
+ return this.apiClient.listClanUnreadMsgIndicator(session.token, clanId).then((response) => {
8994
+ return Promise.resolve(response);
8995
+ });
8996
+ });
8997
+ }
8998
+ /** List clans */
8960
8999
  listClanDescs(session, limit, state, cursor) {
8961
9000
  return __async(this, null, function* () {
8962
9001
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
package/dist/socket.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 { ApiAllUsersAddChannelResponse, ApiChannelAttachmentList, ApiChannelDescList, ApiChannelDescription, ApiChannelMessage, ApiChannelMessageHeader, ApiChannelMessageList, ApiChannelSettingListResponse, ApiChannelUserList, ApiClanDescList, ApiCreateEventRequest, ApiEmojiListedResponse, ApiGiveCoffeeEvent, ApiHashtagDmList, ApiListClanWebhookResponse, ApiListFavoriteChannelResponse, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiNotificationChannel, ApiNotificationChannelCategorySettingList, ApiNotificationList, ApiNotificationSetting, ApiNotificationUserChannel, ApiNotifiReactMessage, ApiPermissionList, ApiPermissionRoleChannelListEventResponse, ApiPermissionUpdate, ApiRole, ApiRoleList, ApiRoleListEventResponse, ApiRoleUserList, ApiRpc, ApiStickerListedResponse, ApiTokenSentEvent, ApiUserActivity, ApiUserPermissionInChannelListResponse, ApiVoiceChannelUserList, ApiWebhook, ApiWebhookListResponse, ApiEmojiRecentList, ApiFriendList, ApiListChannelAppsResponse, ApiListUserActivity } from "./api.gen";
16
+ import { ApiAllUsersAddChannelResponse, ApiChannelAttachmentList, ApiChannelDescList, ApiChannelDescription, ApiChannelMessage, ApiChannelMessageHeader, ApiChannelMessageList, ApiChannelSettingListResponse, ApiChannelUserList, ApiClanDescList, ApiCreateEventRequest, ApiEmojiListedResponse, ApiGiveCoffeeEvent, ApiHashtagDmList, ApiListClanWebhookResponse, ApiListFavoriteChannelResponse, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotification, ApiNotificationChannel, ApiNotificationChannelCategorySettingList, ApiNotificationList, ApiNotificationSetting, ApiNotificationUserChannel, ApiNotifiReactMessage, ApiPermissionList, ApiPermissionRoleChannelListEventResponse, ApiPermissionUpdate, ApiRole, ApiRoleList, ApiRoleListEventResponse, ApiRoleUserList, ApiRpc, ApiStickerListedResponse, ApiTokenSentEvent, ApiUserActivity, ApiUserPermissionInChannelListResponse, ApiVoiceChannelUserList, ApiWebhook, ApiWebhookListResponse, ApiEmojiRecentList, ApiFriendList, ApiListChannelAppsResponse, ApiListUserActivity, ApiListClanUnreadMsgIndicatorResponse } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { ChannelMessage } from "./client";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -843,6 +843,8 @@ export interface ChannelCanvas {
843
843
  }
844
844
  export interface ListDataSocket {
845
845
  api_name?: string;
846
+ list_unread_msg_indicator_req?: any;
847
+ unread_msg_indicator?: ApiListClanUnreadMsgIndicatorResponse;
846
848
  list_clan_req?: any;
847
849
  clan_desc_list?: ApiClanDescList;
848
850
  list_thread_req?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.13.10",
3
+ "version": "2.13.12",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },
package/socket.ts CHANGED
@@ -61,6 +61,7 @@ import {
61
61
  ApiFriendList,
62
62
  ApiListChannelAppsResponse,
63
63
  ApiListUserActivity,
64
+ ApiListClanUnreadMsgIndicatorResponse,
64
65
  } from "./api.gen";
65
66
  import { Session } from "./session";
66
67
  import { ChannelMessage } from "./client";
@@ -1243,6 +1244,8 @@ export interface ChannelCanvas {
1243
1244
 
1244
1245
  export interface ListDataSocket {
1245
1246
  api_name?: string;
1247
+ list_unread_msg_indicator_req?: any;
1248
+ unread_msg_indicator?: ApiListClanUnreadMsgIndicatorResponse;
1246
1249
  list_clan_req?: any;
1247
1250
  clan_desc_list?: ApiClanDescList;
1248
1251
  list_thread_req?: any;