mezon-js 2.10.66 → 2.10.68
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 +5 -12
- package/client.ts +8 -8
- package/dist/api.gen.d.ts +3 -7
- package/dist/client.d.ts +3 -3
- package/dist/mezon-js.cjs.js +4 -3
- package/dist/mezon-js.esm.mjs +4 -3
- package/package.json +1 -1
package/api.gen.ts
CHANGED
@@ -675,6 +675,8 @@ export interface ApiChannelCanvasListResponse {
|
|
675
675
|
channel_id?: string;
|
676
676
|
//
|
677
677
|
clan_id?: string;
|
678
|
+
//
|
679
|
+
count?: number;
|
678
680
|
}
|
679
681
|
|
680
682
|
/** */
|
@@ -707,6 +709,8 @@ export interface ApiChannelDescList {
|
|
707
709
|
channeldesc?: Array<ApiChannelDescription>;
|
708
710
|
//The cursor to send when retrieving the next page, if any.
|
709
711
|
next_cursor?: string;
|
712
|
+
//
|
713
|
+
page?: number;
|
710
714
|
//The cursor to send when retrieving the previous page, if any.
|
711
715
|
prev_cursor?: string;
|
712
716
|
}
|
@@ -1515,16 +1519,6 @@ export interface ApiMessageDeleted {
|
|
1515
1519
|
message_id?: string;
|
1516
1520
|
}
|
1517
1521
|
|
1518
|
-
/** */
|
1519
|
-
export interface ApiListThreadDecs {
|
1520
|
-
//
|
1521
|
-
limit?: number;
|
1522
|
-
//
|
1523
|
-
list_thread?: Array<ApiChannelDescription>;
|
1524
|
-
//
|
1525
|
-
page?: number;
|
1526
|
-
}
|
1527
|
-
|
1528
1522
|
/** */
|
1529
1523
|
export interface ApiListUserActivity {
|
1530
1524
|
//
|
@@ -9478,7 +9472,7 @@ export class MezonApi {
|
|
9478
9472
|
threadId?: string,
|
9479
9473
|
page?: number,
|
9480
9474
|
options: any = {}
|
9481
|
-
): Promise<
|
9475
|
+
): Promise<ApiChannelDescList> {
|
9482
9476
|
if (channelId === null || channelId === undefined) {
|
9483
9477
|
throw new Error(
|
9484
9478
|
"'channelId' is a required parameter but is null or undefined."
|
@@ -9518,7 +9512,6 @@ export class MezonApi {
|
|
9518
9512
|
),
|
9519
9513
|
]);
|
9520
9514
|
}
|
9521
|
-
|
9522
9515
|
/** Update fields in a given category. */
|
9523
9516
|
updateCategory(
|
9524
9517
|
bearerToken: string,
|
package/client.ts
CHANGED
@@ -158,7 +158,6 @@ import {
|
|
158
158
|
ApiSdTopic,
|
159
159
|
ApiSFUChannelUserList,
|
160
160
|
MezonUpdateEventBody,
|
161
|
-
ApiListThreadDecs,
|
162
161
|
} from "./api.gen";
|
163
162
|
|
164
163
|
import { Session } from "./session";
|
@@ -4073,7 +4072,7 @@ export class Client {
|
|
4073
4072
|
clanId?: string,
|
4074
4073
|
threadId?: string,
|
4075
4074
|
page?: number
|
4076
|
-
): Promise<
|
4075
|
+
): Promise<ApiChannelDescList> {
|
4077
4076
|
if (
|
4078
4077
|
this.autoRefreshSession &&
|
4079
4078
|
session.refresh_token &&
|
@@ -4092,16 +4091,16 @@ export class Client {
|
|
4092
4091
|
threadId,
|
4093
4092
|
page
|
4094
4093
|
)
|
4095
|
-
.then((response:
|
4096
|
-
var result:
|
4097
|
-
|
4094
|
+
.then((response: ApiChannelDescList) => {
|
4095
|
+
var result: ApiChannelDescList = {
|
4096
|
+
channeldesc: [],
|
4098
4097
|
};
|
4099
4098
|
|
4100
|
-
if (response.
|
4099
|
+
if (response.channeldesc == null) {
|
4101
4100
|
return Promise.resolve(result);
|
4102
4101
|
}
|
4103
4102
|
|
4104
|
-
result.
|
4103
|
+
result.channeldesc = response.channeldesc;
|
4105
4104
|
return Promise.resolve(result);
|
4106
4105
|
});
|
4107
4106
|
}
|
@@ -4168,7 +4167,7 @@ export class Client {
|
|
4168
4167
|
clanId?: string,
|
4169
4168
|
limit?: number,
|
4170
4169
|
page?: number
|
4171
|
-
): Promise<
|
4170
|
+
): Promise<ApiChannelCanvasListResponse> {
|
4172
4171
|
if (
|
4173
4172
|
this.autoRefreshSession &&
|
4174
4173
|
session.refresh_token &&
|
@@ -4191,6 +4190,7 @@ export class Client {
|
|
4191
4190
|
result.clan_id = response.clan_id;
|
4192
4191
|
result.channel_id = response.channel_id;
|
4193
4192
|
result.channel_canvases = response.channel_canvases;
|
4193
|
+
result.count = response.count;
|
4194
4194
|
return Promise.resolve(result);
|
4195
4195
|
});
|
4196
4196
|
}
|
package/dist/api.gen.d.ts
CHANGED
@@ -394,6 +394,7 @@ export interface ApiChannelCanvasListResponse {
|
|
394
394
|
channel_canvases?: Array<ApiChannelCanvasItem>;
|
395
395
|
channel_id?: string;
|
396
396
|
clan_id?: string;
|
397
|
+
count?: number;
|
397
398
|
}
|
398
399
|
/** */
|
399
400
|
export interface ApiEditChannelCanvasRequest {
|
@@ -413,6 +414,7 @@ export interface ApiChannelDescList {
|
|
413
414
|
cacheable_cursor?: string;
|
414
415
|
channeldesc?: Array<ApiChannelDescription>;
|
415
416
|
next_cursor?: string;
|
417
|
+
page?: number;
|
416
418
|
prev_cursor?: string;
|
417
419
|
}
|
418
420
|
/** */
|
@@ -873,12 +875,6 @@ export interface ApiMessageDeleted {
|
|
873
875
|
message_id?: string;
|
874
876
|
}
|
875
877
|
/** */
|
876
|
-
export interface ApiListThreadDecs {
|
877
|
-
limit?: number;
|
878
|
-
list_thread?: Array<ApiChannelDescription>;
|
879
|
-
page?: number;
|
880
|
-
}
|
881
|
-
/** */
|
882
878
|
export interface ApiListUserActivity {
|
883
879
|
activities?: Array<ApiUserActivity>;
|
884
880
|
}
|
@@ -1971,7 +1967,7 @@ export declare class MezonApi {
|
|
1971
1967
|
/** Update a system messages. */
|
1972
1968
|
updateSystemMessage(bearerToken: string, clanId: string, body: MezonUpdateSystemMessageBody, options?: any): Promise<any>;
|
1973
1969
|
/** List user channels */
|
1974
|
-
listThreadDescs(bearerToken: string, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number, options?: any): Promise<
|
1970
|
+
listThreadDescs(bearerToken: string, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number, options?: any): Promise<ApiChannelDescList>;
|
1975
1971
|
/** Update fields in a given category. */
|
1976
1972
|
updateCategory(bearerToken: string, clanId: string, body: MezonUpdateCategoryBody, options?: any): Promise<any>;
|
1977
1973
|
/** Update channel private. */
|
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, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, 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, 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, ApiSFUChannelUserList, MezonUpdateEventBody
|
16
|
+
import { ApiAccount, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, 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, ApiSFUChannelUserList, MezonUpdateEventBody } from "./api.gen";
|
17
17
|
import { Session } from "./session";
|
18
18
|
import { Socket } from "./socket";
|
19
19
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
@@ -602,10 +602,10 @@ export declare class Client {
|
|
602
602
|
getPermissionByRoleIdChannelId(session: Session, roleId?: string, channelId?: string, userId?: string): Promise<ApiPermissionRoleChannelListEventResponse>;
|
603
603
|
markAsRead(session: Session, request: ApiMarkAsReadRequest): Promise<any>;
|
604
604
|
/** List Threads. */
|
605
|
-
listThreadDescs(session: Session, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number): Promise<
|
605
|
+
listThreadDescs(session: Session, channelId: string, limit?: number, state?: number, clanId?: string, threadId?: string, page?: number): Promise<ApiChannelDescList>;
|
606
606
|
leaveThread(session: Session, channelId: string): Promise<any>;
|
607
607
|
getChannelSettingInClan(session: Session, clanId: string, parentId?: string, categoryId?: string, privateChannel?: number, active?: number, status?: number, type?: number, limit?: number, page?: number, channel_label?: string): Promise<ApiChannelSettingListResponse>;
|
608
|
-
getChannelCanvasList(session: Session, channelId: string, clanId?: string, limit?: number, page?: number): Promise<
|
608
|
+
getChannelCanvasList(session: Session, channelId: string, clanId?: string, limit?: number, page?: number): Promise<ApiChannelCanvasListResponse>;
|
609
609
|
getChannelCanvasDetail(session: Session, id: string, clanId?: string, channelId?: string): Promise<any>;
|
610
610
|
editChannelCanvases(session: Session, request: ApiEditChannelCanvasRequest): Promise<any>;
|
611
611
|
deleteChannelCanvas(session: Session, canvasId: string, clanId?: string, channelId?: string): Promise<any>;
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -10202,12 +10202,12 @@ var Client = class {
|
|
10202
10202
|
page
|
10203
10203
|
).then((response) => {
|
10204
10204
|
var result = {
|
10205
|
-
|
10205
|
+
channeldesc: []
|
10206
10206
|
};
|
10207
|
-
if (response.
|
10207
|
+
if (response.channeldesc == null) {
|
10208
10208
|
return Promise.resolve(result);
|
10209
10209
|
}
|
10210
|
-
result.
|
10210
|
+
result.channeldesc = response.channeldesc;
|
10211
10211
|
return Promise.resolve(result);
|
10212
10212
|
});
|
10213
10213
|
});
|
@@ -10259,6 +10259,7 @@ var Client = class {
|
|
10259
10259
|
result.clan_id = response.clan_id;
|
10260
10260
|
result.channel_id = response.channel_id;
|
10261
10261
|
result.channel_canvases = response.channel_canvases;
|
10262
|
+
result.count = response.count;
|
10262
10263
|
return Promise.resolve(result);
|
10263
10264
|
});
|
10264
10265
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -10167,12 +10167,12 @@ var Client = class {
|
|
10167
10167
|
page
|
10168
10168
|
).then((response) => {
|
10169
10169
|
var result = {
|
10170
|
-
|
10170
|
+
channeldesc: []
|
10171
10171
|
};
|
10172
|
-
if (response.
|
10172
|
+
if (response.channeldesc == null) {
|
10173
10173
|
return Promise.resolve(result);
|
10174
10174
|
}
|
10175
|
-
result.
|
10175
|
+
result.channeldesc = response.channeldesc;
|
10176
10176
|
return Promise.resolve(result);
|
10177
10177
|
});
|
10178
10178
|
});
|
@@ -10224,6 +10224,7 @@ var Client = class {
|
|
10224
10224
|
result.clan_id = response.clan_id;
|
10225
10225
|
result.channel_id = response.channel_id;
|
10226
10226
|
result.channel_canvases = response.channel_canvases;
|
10227
|
+
result.count = response.count;
|
10227
10228
|
return Promise.resolve(result);
|
10228
10229
|
});
|
10229
10230
|
});
|