mezon-js 2.13.9 → 2.13.11

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
@@ -3319,6 +3319,8 @@ export interface ApiClanDiscover {
3319
3319
  verified?: boolean;
3320
3320
  //
3321
3321
  short_url?: string;
3322
+ //
3323
+ create_time?: string;
3322
3324
  }
3323
3325
 
3324
3326
  /** */
@@ -3351,6 +3353,12 @@ export interface ApiListClanDiscover {
3351
3353
  page_count?: number;
3352
3354
  }
3353
3355
 
3356
+ /** */
3357
+ export interface ApiListClanUnreadMsgIndicatorResponse {
3358
+ //
3359
+ has_unread_message?: boolean;
3360
+ }
3361
+
3354
3362
  /** */
3355
3363
  export interface ApiClanDiscoverRequest {
3356
3364
  //
@@ -5493,6 +5501,42 @@ export class MezonApi {
5493
5501
  ]);
5494
5502
  }
5495
5503
 
5504
+ /** List clans */
5505
+ listClanUnreadMsgIndicator(bearerToken: string,
5506
+ clanId:string,
5507
+ options: any = {}): Promise<ApiListClanUnreadMsgIndicatorResponse> {
5508
+
5509
+ if (clanId === null || clanId === undefined) {
5510
+ throw new Error("'clanId' is a required parameter but is null or undefined.");
5511
+ }
5512
+ const urlPath = "/v2/{clanId}/indicator"
5513
+ .replace("{clanId}", encodeURIComponent(String(clanId)));
5514
+ const queryParams = new Map<string, any>();
5515
+
5516
+ let bodyJson : string = "";
5517
+
5518
+ const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
5519
+ const fetchOptions = buildFetchOptions("GET", options, bodyJson);
5520
+ if (bearerToken) {
5521
+ fetchOptions.headers["Authorization"] = "Bearer " + bearerToken;
5522
+ }
5523
+
5524
+ return Promise.race([
5525
+ fetch(fullUrl, fetchOptions).then((response) => {
5526
+ if (response.status == 204) {
5527
+ return response;
5528
+ } else if (response.status >= 200 && response.status < 300) {
5529
+ return response.json();
5530
+ } else {
5531
+ throw response;
5532
+ }
5533
+ }),
5534
+ new Promise((_, reject) =>
5535
+ setTimeout(reject, this.timeoutMs, "Request timed out.")
5536
+ ),
5537
+ ]);
5538
+ }
5539
+
5496
5540
  /** List clans */
5497
5541
  listClanDescs(
5498
5542
  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
@@ -1898,6 +1898,7 @@ export interface ApiClanDiscover {
1898
1898
  total_members?: number;
1899
1899
  verified?: boolean;
1900
1900
  short_url?: string;
1901
+ create_time?: string;
1901
1902
  }
1902
1903
  /** */
1903
1904
  export interface ApiListForSaleItemsRequest {
@@ -1919,6 +1920,10 @@ export interface ApiListClanDiscover {
1919
1920
  page_count?: number;
1920
1921
  }
1921
1922
  /** */
1923
+ export interface ApiListClanUnreadMsgIndicatorResponse {
1924
+ has_unread_message?: boolean;
1925
+ }
1926
+ /** */
1922
1927
  export interface ApiClanDiscoverRequest {
1923
1928
  clan_id?: string;
1924
1929
  item_per_page?: number;
@@ -2055,6 +2060,8 @@ export declare class MezonApi {
2055
2060
  /** List all users that are part of a channel. */
2056
2061
  listChannelVoiceUsers(bearerToken: string, clanId?: string, channelId?: string, channelType?: number, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiVoiceChannelUserList>;
2057
2062
  /** List clans */
2063
+ listClanUnreadMsgIndicator(bearerToken: string, clanId: string, options?: any): Promise<ApiListClanUnreadMsgIndicatorResponse>;
2064
+ /** List clans */
2058
2065
  listClanDescs(bearerToken: string, limit?: number, state?: number, cursor?: string, options?: any): Promise<ApiClanDescList>;
2059
2066
  /** Create a clan */
2060
2067
  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.9",
3
+ "version": "2.13.11",
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;