mezon-js 2.13.27 → 2.13.29

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
@@ -2479,13 +2479,13 @@ export interface ApiSetDefaultNotificationRequest {
2479
2479
  }
2480
2480
 
2481
2481
  /** */
2482
- export interface ApiSetMuteNotificationRequest {
2482
+ export interface ApiSetMuteRequest {
2483
2483
  //
2484
2484
  active?: number;
2485
2485
  //
2486
2486
  id?: string;
2487
2487
  //
2488
- notification_type?: number;
2488
+ mute_time?: number;
2489
2489
  }
2490
2490
 
2491
2491
  /** */
@@ -2494,8 +2494,6 @@ export interface ApiSetNotificationRequest {
2494
2494
  channel_category_id?: string;
2495
2495
  //
2496
2496
  notification_type?: number;
2497
- //
2498
- time_mute?: string;
2499
2497
  // clan_id
2500
2498
  clan_id?: string;
2501
2499
  }
@@ -7429,9 +7427,9 @@ export class MezonApi {
7429
7427
  }
7430
7428
 
7431
7429
  /** set mute notification user channel. */
7432
- setMuteNotificationCategory(
7430
+ setMuteCategory(
7433
7431
  bearerToken: string,
7434
- body: ApiSetMuteNotificationRequest,
7432
+ body: ApiSetMuteRequest,
7435
7433
  options: any = {}
7436
7434
  ): Promise<any> {
7437
7435
  if (body === null || body === undefined) {
@@ -7439,7 +7437,7 @@ export class MezonApi {
7439
7437
  "'body' is a required parameter but is null or undefined."
7440
7438
  );
7441
7439
  }
7442
- const urlPath = "/v2/mutenotificationcategory/set";
7440
+ const urlPath = "/v2/mutecategory/set";
7443
7441
  const queryParams = new Map<string, any>();
7444
7442
 
7445
7443
  let bodyJson: string = "";
@@ -7468,9 +7466,9 @@ export class MezonApi {
7468
7466
  }
7469
7467
 
7470
7468
  /** set mute notification user channel. */
7471
- setMuteNotificationChannel(
7469
+ setMuteChannel(
7472
7470
  bearerToken: string,
7473
- body: ApiSetMuteNotificationRequest,
7471
+ body: ApiSetMuteRequest,
7474
7472
  options: any = {}
7475
7473
  ): Promise<any> {
7476
7474
  if (body === null || body === undefined) {
@@ -7478,7 +7476,7 @@ export class MezonApi {
7478
7476
  "'body' is a required parameter but is null or undefined."
7479
7477
  );
7480
7478
  }
7481
- const urlPath = "/v2/mutenotificationchannel/set";
7479
+ const urlPath = "/v2/mutechannel/set";
7482
7480
  const queryParams = new Map<string, any>();
7483
7481
 
7484
7482
  let bodyJson: string = "";
package/client.ts CHANGED
@@ -63,7 +63,7 @@ import {
63
63
  ApiDeleteEventRequest,
64
64
  ApiSetDefaultNotificationRequest,
65
65
  ApiSetNotificationRequest,
66
- ApiSetMuteNotificationRequest,
66
+ ApiSetMuteRequest,
67
67
  ApiSearchMessageRequest,
68
68
  ApiSearchMessageResponse,
69
69
  ApiPinMessageRequest,
@@ -2466,9 +2466,9 @@ export class Client {
2466
2466
  }
2467
2467
 
2468
2468
  /** Set notification category*/
2469
- async setMuteNotificationCategory(
2469
+ async setMuteCategory(
2470
2470
  session: Session,
2471
- request: ApiSetMuteNotificationRequest
2471
+ request: ApiSetMuteRequest
2472
2472
  ): Promise<boolean> {
2473
2473
  if (
2474
2474
  this.autoRefreshSession &&
@@ -2479,16 +2479,16 @@ export class Client {
2479
2479
  }
2480
2480
 
2481
2481
  return this.apiClient
2482
- .setMuteNotificationCategory(session.token, request)
2482
+ .setMuteCategory(session.token, request)
2483
2483
  .then((response: any) => {
2484
2484
  return response !== undefined;
2485
2485
  });
2486
2486
  }
2487
2487
 
2488
2488
  /** Set notification channel*/
2489
- async setMuteNotificationChannel(
2489
+ async setMuteChannel(
2490
2490
  session: Session,
2491
- request: ApiSetMuteNotificationRequest
2491
+ request: ApiSetMuteRequest
2492
2492
  ): Promise<boolean> {
2493
2493
  if (
2494
2494
  this.autoRefreshSession &&
@@ -2499,7 +2499,7 @@ export class Client {
2499
2499
  }
2500
2500
 
2501
2501
  return this.apiClient
2502
- .setMuteNotificationChannel(session.token, request)
2502
+ .setMuteChannel(session.token, request)
2503
2503
  .then((response: any) => {
2504
2504
  return response !== undefined;
2505
2505
  });
package/dist/api.gen.d.ts CHANGED
@@ -1418,16 +1418,15 @@ export interface ApiSetDefaultNotificationRequest {
1418
1418
  notification_type?: number;
1419
1419
  }
1420
1420
  /** */
1421
- export interface ApiSetMuteNotificationRequest {
1421
+ export interface ApiSetMuteRequest {
1422
1422
  active?: number;
1423
1423
  id?: string;
1424
- notification_type?: number;
1424
+ mute_time?: number;
1425
1425
  }
1426
1426
  /** */
1427
1427
  export interface ApiSetNotificationRequest {
1428
1428
  channel_category_id?: string;
1429
1429
  notification_type?: number;
1430
- time_mute?: string;
1431
1430
  clan_id?: string;
1432
1431
  }
1433
1432
  /** */
@@ -2182,9 +2181,9 @@ export declare class MezonApi {
2182
2181
  /** List mezon OAuth client */
2183
2182
  listMezonOauthClient(bearerToken: string, options?: any): Promise<ApiMezonOauthClientList>;
2184
2183
  /** set mute notification user channel. */
2185
- setMuteNotificationCategory(bearerToken: string, body: ApiSetMuteNotificationRequest, options?: any): Promise<any>;
2184
+ setMuteCategory(bearerToken: string, body: ApiSetMuteRequest, options?: any): Promise<any>;
2186
2185
  /** set mute notification user channel. */
2187
- setMuteNotificationChannel(bearerToken: string, body: ApiSetMuteNotificationRequest, options?: any): Promise<any>;
2186
+ setMuteChannel(bearerToken: string, body: ApiSetMuteRequest, options?: any): Promise<any>;
2188
2187
  /** Delete one or more notifications for the current user. */
2189
2188
  deleteNotifications(bearerToken: string, ids?: Array<string>, category?: number, options?: any): Promise<any>;
2190
2189
  /** Fetch list of notifications. */
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, ApiListClanUnreadMsgIndicatorResponse, ApiAddFriendsResponse, ApiUpdateUsernameRequest, ApibannedUserList } 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, ApiSetMuteRequest, 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, ApiAddFriendsResponse, ApiUpdateUsernameRequest, ApibannedUserList } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { Socket } from "./socket";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -389,9 +389,9 @@ export declare class Client {
389
389
  /** Set notification channel*/
390
390
  setNotificationChannel(session: Session, request: ApiSetNotificationRequest): Promise<boolean>;
391
391
  /** Set notification category*/
392
- setMuteNotificationCategory(session: Session, request: ApiSetMuteNotificationRequest): Promise<boolean>;
392
+ setMuteCategory(session: Session, request: ApiSetMuteRequest): Promise<boolean>;
393
393
  /** Set notification channel*/
394
- setMuteNotificationChannel(session: Session, request: ApiSetMuteNotificationRequest): Promise<boolean>;
394
+ setMuteChannel(session: Session, request: ApiSetMuteRequest): Promise<boolean>;
395
395
  /** update channel private*/
396
396
  updateChannelPrivate(session: Session, request: ApiChangeChannelPrivateRequest): Promise<boolean>;
397
397
  /** Set default notification category*/
@@ -3832,13 +3832,13 @@ var MezonApi = class {
3832
3832
  ]);
3833
3833
  }
3834
3834
  /** set mute notification user channel. */
3835
- setMuteNotificationCategory(bearerToken, body, options = {}) {
3835
+ setMuteCategory(bearerToken, body, options = {}) {
3836
3836
  if (body === null || body === void 0) {
3837
3837
  throw new Error(
3838
3838
  "'body' is a required parameter but is null or undefined."
3839
3839
  );
3840
3840
  }
3841
- const urlPath = "/v2/mutenotificationcategory/set";
3841
+ const urlPath = "/v2/mutecategory/set";
3842
3842
  const queryParams = /* @__PURE__ */ new Map();
3843
3843
  let bodyJson = "";
3844
3844
  bodyJson = JSON.stringify(body || {});
@@ -3863,13 +3863,13 @@ var MezonApi = class {
3863
3863
  ]);
3864
3864
  }
3865
3865
  /** set mute notification user channel. */
3866
- setMuteNotificationChannel(bearerToken, body, options = {}) {
3866
+ setMuteChannel(bearerToken, body, options = {}) {
3867
3867
  if (body === null || body === void 0) {
3868
3868
  throw new Error(
3869
3869
  "'body' is a required parameter but is null or undefined."
3870
3870
  );
3871
3871
  }
3872
- const urlPath = "/v2/mutenotificationchannel/set";
3872
+ const urlPath = "/v2/mutechannel/set";
3873
3873
  const queryParams = /* @__PURE__ */ new Map();
3874
3874
  let bodyJson = "";
3875
3875
  bodyJson = JSON.stringify(body || {});
@@ -9744,23 +9744,23 @@ var Client = class {
9744
9744
  });
9745
9745
  }
9746
9746
  /** Set notification category*/
9747
- setMuteNotificationCategory(session, request) {
9747
+ setMuteCategory(session, request) {
9748
9748
  return __async(this, null, function* () {
9749
9749
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
9750
9750
  yield this.sessionRefresh(session);
9751
9751
  }
9752
- return this.apiClient.setMuteNotificationCategory(session.token, request).then((response) => {
9752
+ return this.apiClient.setMuteCategory(session.token, request).then((response) => {
9753
9753
  return response !== void 0;
9754
9754
  });
9755
9755
  });
9756
9756
  }
9757
9757
  /** Set notification channel*/
9758
- setMuteNotificationChannel(session, request) {
9758
+ setMuteChannel(session, request) {
9759
9759
  return __async(this, null, function* () {
9760
9760
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
9761
9761
  yield this.sessionRefresh(session);
9762
9762
  }
9763
- return this.apiClient.setMuteNotificationChannel(session.token, request).then((response) => {
9763
+ return this.apiClient.setMuteChannel(session.token, request).then((response) => {
9764
9764
  return response !== void 0;
9765
9765
  });
9766
9766
  });
@@ -3798,13 +3798,13 @@ var MezonApi = class {
3798
3798
  ]);
3799
3799
  }
3800
3800
  /** set mute notification user channel. */
3801
- setMuteNotificationCategory(bearerToken, body, options = {}) {
3801
+ setMuteCategory(bearerToken, body, options = {}) {
3802
3802
  if (body === null || body === void 0) {
3803
3803
  throw new Error(
3804
3804
  "'body' is a required parameter but is null or undefined."
3805
3805
  );
3806
3806
  }
3807
- const urlPath = "/v2/mutenotificationcategory/set";
3807
+ const urlPath = "/v2/mutecategory/set";
3808
3808
  const queryParams = /* @__PURE__ */ new Map();
3809
3809
  let bodyJson = "";
3810
3810
  bodyJson = JSON.stringify(body || {});
@@ -3829,13 +3829,13 @@ var MezonApi = class {
3829
3829
  ]);
3830
3830
  }
3831
3831
  /** set mute notification user channel. */
3832
- setMuteNotificationChannel(bearerToken, body, options = {}) {
3832
+ setMuteChannel(bearerToken, body, options = {}) {
3833
3833
  if (body === null || body === void 0) {
3834
3834
  throw new Error(
3835
3835
  "'body' is a required parameter but is null or undefined."
3836
3836
  );
3837
3837
  }
3838
- const urlPath = "/v2/mutenotificationchannel/set";
3838
+ const urlPath = "/v2/mutechannel/set";
3839
3839
  const queryParams = /* @__PURE__ */ new Map();
3840
3840
  let bodyJson = "";
3841
3841
  bodyJson = JSON.stringify(body || {});
@@ -9710,23 +9710,23 @@ var Client = class {
9710
9710
  });
9711
9711
  }
9712
9712
  /** Set notification category*/
9713
- setMuteNotificationCategory(session, request) {
9713
+ setMuteCategory(session, request) {
9714
9714
  return __async(this, null, function* () {
9715
9715
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
9716
9716
  yield this.sessionRefresh(session);
9717
9717
  }
9718
- return this.apiClient.setMuteNotificationCategory(session.token, request).then((response) => {
9718
+ return this.apiClient.setMuteCategory(session.token, request).then((response) => {
9719
9719
  return response !== void 0;
9720
9720
  });
9721
9721
  });
9722
9722
  }
9723
9723
  /** Set notification channel*/
9724
- setMuteNotificationChannel(session, request) {
9724
+ setMuteChannel(session, request) {
9725
9725
  return __async(this, null, function* () {
9726
9726
  if (this.autoRefreshSession && session.refresh_token && session.isexpired(Date.now() / 1e3)) {
9727
9727
  yield this.sessionRefresh(session);
9728
9728
  }
9729
- return this.apiClient.setMuteNotificationChannel(session.token, request).then((response) => {
9729
+ return this.apiClient.setMuteChannel(session.token, request).then((response) => {
9730
9730
  return response !== void 0;
9731
9731
  });
9732
9732
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.13.27",
3
+ "version": "2.13.29",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },