mezon-js 2.10.67 → 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 +11 -19
- package/client.ts +7 -8
- package/dist/api.gen.d.ts +2 -7
- package/dist/client.d.ts +2 -2
- package/dist/mezon-js.cjs.js +3 -3
- package/dist/mezon-js.esm.mjs +3 -3
- package/package.json +1 -1
package/api.gen.ts
CHANGED
@@ -709,6 +709,8 @@ export interface ApiChannelDescList {
|
|
709
709
|
channeldesc?: Array<ApiChannelDescription>;
|
710
710
|
//The cursor to send when retrieving the next page, if any.
|
711
711
|
next_cursor?: string;
|
712
|
+
//
|
713
|
+
page?: number;
|
712
714
|
//The cursor to send when retrieving the previous page, if any.
|
713
715
|
prev_cursor?: string;
|
714
716
|
}
|
@@ -1517,16 +1519,6 @@ export interface ApiMessageDeleted {
|
|
1517
1519
|
message_id?: string;
|
1518
1520
|
}
|
1519
1521
|
|
1520
|
-
/** */
|
1521
|
-
export interface ApiListThreadDecs {
|
1522
|
-
//
|
1523
|
-
limit?: number;
|
1524
|
-
//
|
1525
|
-
list_thread?: Array<ApiChannelDescription>;
|
1526
|
-
//
|
1527
|
-
page?: number;
|
1528
|
-
}
|
1529
|
-
|
1530
1522
|
/** */
|
1531
1523
|
export interface ApiListUserActivity {
|
1532
1524
|
//
|
@@ -4817,13 +4809,14 @@ export class MezonApi {
|
|
4817
4809
|
}
|
4818
4810
|
|
4819
4811
|
/** */
|
4820
|
-
getChannelCanvasList(
|
4821
|
-
|
4822
|
-
|
4823
|
-
|
4824
|
-
|
4825
|
-
|
4826
|
-
|
4812
|
+
getChannelCanvasList(
|
4813
|
+
bearerToken: string,
|
4814
|
+
channelId: string,
|
4815
|
+
clanId?: string,
|
4816
|
+
limit?: number,
|
4817
|
+
page?: number,
|
4818
|
+
options: any = {}
|
4819
|
+
): Promise<ApiChannelCanvasListResponse> {
|
4827
4820
|
if (channelId === null || channelId === undefined) {
|
4828
4821
|
throw new Error(
|
4829
4822
|
"'channelId' is a required parameter but is null or undefined."
|
@@ -9479,7 +9472,7 @@ export class MezonApi {
|
|
9479
9472
|
threadId?: string,
|
9480
9473
|
page?: number,
|
9481
9474
|
options: any = {}
|
9482
|
-
): Promise<
|
9475
|
+
): Promise<ApiChannelDescList> {
|
9483
9476
|
if (channelId === null || channelId === undefined) {
|
9484
9477
|
throw new Error(
|
9485
9478
|
"'channelId' is a required parameter but is null or undefined."
|
@@ -9519,7 +9512,6 @@ export class MezonApi {
|
|
9519
9512
|
),
|
9520
9513
|
]);
|
9521
9514
|
}
|
9522
|
-
|
9523
9515
|
/** Update fields in a given category. */
|
9524
9516
|
updateCategory(
|
9525
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
|
}
|
@@ -4191,7 +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;
|
4194
|
-
result.count = response.count
|
4193
|
+
result.count = response.count;
|
4195
4194
|
return Promise.resolve(result);
|
4196
4195
|
});
|
4197
4196
|
}
|
package/dist/api.gen.d.ts
CHANGED
@@ -414,6 +414,7 @@ export interface ApiChannelDescList {
|
|
414
414
|
cacheable_cursor?: string;
|
415
415
|
channeldesc?: Array<ApiChannelDescription>;
|
416
416
|
next_cursor?: string;
|
417
|
+
page?: number;
|
417
418
|
prev_cursor?: string;
|
418
419
|
}
|
419
420
|
/** */
|
@@ -874,12 +875,6 @@ export interface ApiMessageDeleted {
|
|
874
875
|
message_id?: string;
|
875
876
|
}
|
876
877
|
/** */
|
877
|
-
export interface ApiListThreadDecs {
|
878
|
-
limit?: number;
|
879
|
-
list_thread?: Array<ApiChannelDescription>;
|
880
|
-
page?: number;
|
881
|
-
}
|
882
|
-
/** */
|
883
878
|
export interface ApiListUserActivity {
|
884
879
|
activities?: Array<ApiUserActivity>;
|
885
880
|
}
|
@@ -1972,7 +1967,7 @@ export declare class MezonApi {
|
|
1972
1967
|
/** Update a system messages. */
|
1973
1968
|
updateSystemMessage(bearerToken: string, clanId: string, body: MezonUpdateSystemMessageBody, options?: any): Promise<any>;
|
1974
1969
|
/** List user channels */
|
1975
|
-
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>;
|
1976
1971
|
/** Update fields in a given category. */
|
1977
1972
|
updateCategory(bearerToken: string, clanId: string, body: MezonUpdateCategoryBody, options?: any): Promise<any>;
|
1978
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, 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
|
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,7 +602,7 @@ 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
608
|
getChannelCanvasList(session: Session, channelId: string, clanId?: string, limit?: number, page?: number): Promise<ApiChannelCanvasListResponse>;
|
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
|
});
|
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
|
});
|