mezon-js 2.12.31 → 2.12.33
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 +13 -3
- package/client.ts +5 -4
- package/dist/api.gen.d.ts +8 -2
- package/dist/client.d.ts +2 -2
- package/dist/mezon-js.cjs.js +1 -1
- package/dist/mezon-js.esm.mjs +1 -1
- package/dist/socket.d.ts +2 -0
- package/package.json +1 -1
- package/socket.ts +4 -0
package/api.gen.ts
CHANGED
@@ -970,6 +970,8 @@ export interface ApiClanEmoji {
|
|
970
970
|
shortname?: string;
|
971
971
|
//
|
972
972
|
src?: string;
|
973
|
+
//
|
974
|
+
is_for_sale?: boolean;
|
973
975
|
}
|
974
976
|
|
975
977
|
/** */
|
@@ -1022,6 +1024,8 @@ export interface ApiClanSticker {
|
|
1022
1024
|
source?: string;
|
1023
1025
|
//
|
1024
1026
|
media_type?: number;
|
1027
|
+
//
|
1028
|
+
is_for_sale?: boolean;
|
1025
1029
|
}
|
1026
1030
|
|
1027
1031
|
/** */
|
@@ -3090,13 +3094,19 @@ export interface ApiGenerateMeetTokenResponse {
|
|
3090
3094
|
}
|
3091
3095
|
|
3092
3096
|
/** */
|
3093
|
-
export interface
|
3097
|
+
export interface ApiUnlockedItemRequest {
|
3094
3098
|
//
|
3095
3099
|
item_id?: string;
|
3096
3100
|
//
|
3097
3101
|
item_type?: number;
|
3098
3102
|
}
|
3099
3103
|
|
3104
|
+
/** */
|
3105
|
+
export interface ApiUnlockedItemResponse {
|
3106
|
+
//
|
3107
|
+
source?: string;
|
3108
|
+
}
|
3109
|
+
|
3100
3110
|
/** */
|
3101
3111
|
export interface ApiMezonOauthClient {
|
3102
3112
|
//
|
@@ -11009,8 +11019,8 @@ export class MezonApi {
|
|
11009
11019
|
|
11010
11020
|
/** UnlockItem */
|
11011
11021
|
unlockItem(bearerToken: string,
|
11012
|
-
body:
|
11013
|
-
options: any = {}): Promise<
|
11022
|
+
body:ApiUnlockedItemRequest,
|
11023
|
+
options: any = {}): Promise<ApiUnlockedItemResponse> {
|
11014
11024
|
|
11015
11025
|
if (body === null || body === undefined) {
|
11016
11026
|
throw new Error("'body' is a required parameter but is null or undefined.");
|
package/client.ts
CHANGED
@@ -166,8 +166,9 @@ import {
|
|
166
166
|
ApiClanDiscoverRequest,
|
167
167
|
ApiQuickMenuAccessList,
|
168
168
|
ApiQuickMenuAccessRequest,
|
169
|
-
|
169
|
+
ApiUnlockedItemRequest,
|
170
170
|
ApiForSaleItemList,
|
171
|
+
ApiUnlockedItemResponse,
|
171
172
|
} from "./api.gen";
|
172
173
|
|
173
174
|
import { Session } from "./session";
|
@@ -4825,7 +4826,7 @@ export class Client {
|
|
4825
4826
|
});
|
4826
4827
|
}
|
4827
4828
|
|
4828
|
-
async unlockItem(session: Session, request:
|
4829
|
+
async unlockItem(session: Session, request: ApiUnlockedItemRequest): Promise<ApiUnlockedItemResponse> {
|
4829
4830
|
if (
|
4830
4831
|
this.autoRefreshSession &&
|
4831
4832
|
session.refresh_token &&
|
@@ -4836,8 +4837,8 @@ export class Client {
|
|
4836
4837
|
|
4837
4838
|
return this.apiClient
|
4838
4839
|
.unlockItem(session.token, request)
|
4839
|
-
.then((response:
|
4840
|
-
|
4840
|
+
.then((response: ApiUnlockedItemResponse) => {
|
4841
|
+
return Promise.resolve(response);
|
4841
4842
|
});
|
4842
4843
|
}
|
4843
4844
|
|
package/dist/api.gen.d.ts
CHANGED
@@ -550,6 +550,7 @@ export interface ApiClanEmoji {
|
|
550
550
|
logo?: string;
|
551
551
|
shortname?: string;
|
552
552
|
src?: string;
|
553
|
+
is_for_sale?: boolean;
|
553
554
|
}
|
554
555
|
/** */
|
555
556
|
export interface ApiClanEmojiCreateRequest {
|
@@ -579,6 +580,7 @@ export interface ApiClanSticker {
|
|
579
580
|
shortname?: string;
|
580
581
|
source?: string;
|
581
582
|
media_type?: number;
|
583
|
+
is_for_sale?: boolean;
|
582
584
|
}
|
583
585
|
/** */
|
584
586
|
export interface ApiClanStickerAddRequest {
|
@@ -1774,11 +1776,15 @@ export interface ApiGenerateMeetTokenResponse {
|
|
1774
1776
|
token?: string;
|
1775
1777
|
}
|
1776
1778
|
/** */
|
1777
|
-
export interface
|
1779
|
+
export interface ApiUnlockedItemRequest {
|
1778
1780
|
item_id?: string;
|
1779
1781
|
item_type?: number;
|
1780
1782
|
}
|
1781
1783
|
/** */
|
1784
|
+
export interface ApiUnlockedItemResponse {
|
1785
|
+
source?: string;
|
1786
|
+
}
|
1787
|
+
/** */
|
1782
1788
|
export interface ApiMezonOauthClient {
|
1783
1789
|
access_token_strategy?: string;
|
1784
1790
|
allowed_cors_origins?: Array<string>;
|
@@ -2270,7 +2276,7 @@ export declare class MezonApi {
|
|
2270
2276
|
/** */
|
2271
2277
|
updateQuickMenuAccess(bearerToken: string, body: ApiQuickMenuAccessRequest, options?: any): Promise<any>;
|
2272
2278
|
/** UnlockItem */
|
2273
|
-
unlockItem(bearerToken: string, body:
|
2279
|
+
unlockItem(bearerToken: string, body: ApiUnlockedItemRequest, options?: any): Promise<ApiUnlockedItemResponse>;
|
2274
2280
|
/** For sale items */
|
2275
2281
|
listForSaleItems(bearerToken: string, page?: number, options?: any): Promise<ApiForSaleItemList>;
|
2276
2282
|
}
|
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, 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, 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, MezonapiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest,
|
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, 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, 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, MezonapiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest, ApiUnlockedItemRequest, ApiForSaleItemList, ApiUnlockedItemResponse } from "./api.gen";
|
17
17
|
import { Session } from "./session";
|
18
18
|
import { Socket } from "./socket";
|
19
19
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
@@ -629,6 +629,6 @@ export declare class Client {
|
|
629
629
|
deleteQuickMenuAccess(session: Session, id: string): Promise<any>;
|
630
630
|
addQuickMenuAccess(session: Session, request: ApiQuickMenuAccessRequest): Promise<any>;
|
631
631
|
updateQuickMenuAccess(session: Session, request: ApiQuickMenuAccessRequest): Promise<any>;
|
632
|
-
unlockItem(session: Session, request:
|
632
|
+
unlockItem(session: Session, request: ApiUnlockedItemRequest): Promise<ApiUnlockedItemResponse>;
|
633
633
|
listForSaleItems(session: Session, page?: number): Promise<ApiForSaleItemList>;
|
634
634
|
}
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -10568,7 +10568,7 @@ var Client = class {
|
|
10568
10568
|
yield this.sessionRefresh(session);
|
10569
10569
|
}
|
10570
10570
|
return this.apiClient.unlockItem(session.token, request).then((response) => {
|
10571
|
-
return response
|
10571
|
+
return Promise.resolve(response);
|
10572
10572
|
});
|
10573
10573
|
});
|
10574
10574
|
}
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -10534,7 +10534,7 @@ var Client = class {
|
|
10534
10534
|
yield this.sessionRefresh(session);
|
10535
10535
|
}
|
10536
10536
|
return this.apiClient.unlockItem(session.token, request).then((response) => {
|
10537
|
-
return response
|
10537
|
+
return Promise.resolve(response);
|
10538
10538
|
});
|
10539
10539
|
});
|
10540
10540
|
}
|
package/dist/socket.d.ts
CHANGED
@@ -527,6 +527,7 @@ export interface ClanSticker {
|
|
527
527
|
source?: string;
|
528
528
|
logo?: string;
|
529
529
|
clan_name?: string;
|
530
|
+
is_for_sale?: boolean;
|
530
531
|
}
|
531
532
|
export interface RoleEvent {
|
532
533
|
role: ApiRole;
|
@@ -558,6 +559,7 @@ export interface ClanEmoji {
|
|
558
559
|
logo?: string;
|
559
560
|
clan_name?: string;
|
560
561
|
clan_id?: string;
|
562
|
+
is_for_sale?: boolean;
|
561
563
|
}
|
562
564
|
/** */
|
563
565
|
export interface ChannelDescription {
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -780,6 +780,8 @@ export interface ClanSticker {
|
|
780
780
|
logo?: string;
|
781
781
|
//
|
782
782
|
clan_name?: string;
|
783
|
+
//
|
784
|
+
is_for_sale?: boolean;
|
783
785
|
}
|
784
786
|
|
785
787
|
export interface RoleEvent {
|
@@ -822,6 +824,8 @@ export interface ClanEmoji {
|
|
822
824
|
clan_name?: string;
|
823
825
|
//
|
824
826
|
clan_id?: string;
|
827
|
+
//
|
828
|
+
is_for_sale?: boolean;
|
825
829
|
}
|
826
830
|
|
827
831
|
/** */
|