mezon-js 2.9.78 → 2.9.80
Sign up to get free protection for your applications and to get access to all the features.
- package/client.ts +2 -1
- package/dist/client.d.ts +2 -2
- package/dist/mezon-js.cjs.js +2 -2
- package/dist/mezon-js.esm.mjs +2 -2
- package/dist/socket.d.ts +3 -2
- package/package.json +1 -1
- package/socket.ts +5 -3
package/client.ts
CHANGED
@@ -148,6 +148,7 @@ import {
|
|
148
148
|
ApiGenerateClanWebhookResponse,
|
149
149
|
ApiListClanWebhookResponse,
|
150
150
|
MezonUpdateClanWebhookByIdBody,
|
151
|
+
MezonUpdateClanDescBody,
|
151
152
|
} from "./api.gen";
|
152
153
|
|
153
154
|
import { Session } from "./session";
|
@@ -2577,7 +2578,7 @@ export class Client {
|
|
2577
2578
|
async updateClanDesc(
|
2578
2579
|
session: Session,
|
2579
2580
|
clanId: string,
|
2580
|
-
request:
|
2581
|
+
request: MezonUpdateClanDescBody
|
2581
2582
|
): Promise<boolean> {
|
2582
2583
|
if (
|
2583
2584
|
this.autoRefreshSession &&
|
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, ApiUpdateEventRequest, 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 } from "./api.gen";
|
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, ApiUpdateEventRequest, 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 } from "./api.gen";
|
17
17
|
import { Session } from "./session";
|
18
18
|
import { Socket } from "./socket";
|
19
19
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
@@ -494,7 +494,7 @@ export declare class Client {
|
|
494
494
|
/** Update fields in a given channel */
|
495
495
|
updateChannelDesc(session: Session, channelId: string, request: ApiUpdateChannelDescRequest): Promise<boolean>;
|
496
496
|
/** Update fields in a given clan. */
|
497
|
-
updateClanDesc(session: Session, clanId: string, request:
|
497
|
+
updateClanDesc(session: Session, clanId: string, request: MezonUpdateClanDescBody): Promise<boolean>;
|
498
498
|
/** Update fields in a given category. */
|
499
499
|
updateCategory(session: Session, clanId: string, request: ApiUpdateCategoryDescRequest): Promise<boolean>;
|
500
500
|
/** Update fields in a given clan profile. */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -7476,10 +7476,10 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7476
7476
|
return response.check_name_existed_event;
|
7477
7477
|
});
|
7478
7478
|
}
|
7479
|
-
forwardWebrtcSignaling(receiver_id, data_type, json_data, channel_id) {
|
7479
|
+
forwardWebrtcSignaling(receiver_id, data_type, json_data, channel_id, caller_id) {
|
7480
7480
|
return __async(this, null, function* () {
|
7481
7481
|
const response = yield this.send({
|
7482
|
-
webrtc_signaling_fwd: { receiver_id, data_type, json_data, channel_id }
|
7482
|
+
webrtc_signaling_fwd: { receiver_id, data_type, json_data, channel_id, caller_id }
|
7483
7483
|
});
|
7484
7484
|
return response.webrtc_signaling_fwd;
|
7485
7485
|
});
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7446,10 +7446,10 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7446
7446
|
return response.check_name_existed_event;
|
7447
7447
|
});
|
7448
7448
|
}
|
7449
|
-
forwardWebrtcSignaling(receiver_id, data_type, json_data, channel_id) {
|
7449
|
+
forwardWebrtcSignaling(receiver_id, data_type, json_data, channel_id, caller_id) {
|
7450
7450
|
return __async(this, null, function* () {
|
7451
7451
|
const response = yield this.send({
|
7452
|
-
webrtc_signaling_fwd: { receiver_id, data_type, json_data, channel_id }
|
7452
|
+
webrtc_signaling_fwd: { receiver_id, data_type, json_data, channel_id, caller_id }
|
7453
7453
|
});
|
7454
7454
|
return response.webrtc_signaling_fwd;
|
7455
7455
|
});
|
package/dist/socket.d.ts
CHANGED
@@ -589,6 +589,7 @@ export interface WebrtcSignalingFwd {
|
|
589
589
|
data_type: number;
|
590
590
|
json_data: string;
|
591
591
|
channel_id: string;
|
592
|
+
caller_id: string;
|
592
593
|
}
|
593
594
|
export interface JoinPTTChannel {
|
594
595
|
channel_id: string;
|
@@ -708,7 +709,7 @@ export interface Socket {
|
|
708
709
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
709
710
|
handleMessageButtonClick: (message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string) => Promise<MessageButtonClicked>;
|
710
711
|
onmessagebuttonclicked: (event: MessageButtonClicked) => void;
|
711
|
-
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string) => Promise<WebrtcSignalingFwd>;
|
712
|
+
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
|
712
713
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
713
714
|
oneventcreated: (clan_event_created: ApiCreateEventRequest) => void;
|
714
715
|
oncoffeegiven: (give_coffee_event: ApiGiveCoffeeEvent) => void;
|
@@ -819,7 +820,7 @@ export declare class DefaultSocket implements Socket {
|
|
819
820
|
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
820
821
|
writeCustomStatus(clan_id: string, status: string): Promise<CustomStatusEvent>;
|
821
822
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
822
|
-
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string): Promise<WebrtcSignalingFwd>;
|
823
|
+
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
823
824
|
handleMessageButtonClick(message_id: string, channel_id: string, button_id: string, sender_id: string, user_id: string): Promise<MessageButtonClicked>;
|
824
825
|
joinPTTChannel(channelId: string, dataType: number, jsonData: string): Promise<JoinPTTChannel>;
|
825
826
|
talkPTTChannel(channelId: string, dataType: number, jsonData: string, state: number): Promise<TalkPTTChannel>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -833,6 +833,7 @@ export interface WebrtcSignalingFwd {
|
|
833
833
|
data_type: number;
|
834
834
|
json_data: string;
|
835
835
|
channel_id: string;
|
836
|
+
caller_id: string;
|
836
837
|
}
|
837
838
|
|
838
839
|
export interface JoinPTTChannel {
|
@@ -1147,7 +1148,7 @@ export interface Socket {
|
|
1147
1148
|
|
1148
1149
|
onmessagebuttonclicked: (event: MessageButtonClicked) => void;
|
1149
1150
|
|
1150
|
-
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string) => Promise<WebrtcSignalingFwd>;
|
1151
|
+
forwardWebrtcSignaling: (receiverId: string, dataType: number, jsonData: string, channelId: string, caller_id: string) => Promise<WebrtcSignalingFwd>;
|
1151
1152
|
|
1152
1153
|
onwebrtcsignalingfwd: (event: WebrtcSignalingFwd) => void;
|
1153
1154
|
|
@@ -2145,9 +2146,10 @@ export class DefaultSocket implements Socket {
|
|
2145
2146
|
receiver_id: string,
|
2146
2147
|
data_type: number,
|
2147
2148
|
json_data: string,
|
2148
|
-
channel_id: string
|
2149
|
+
channel_id: string,
|
2150
|
+
caller_id: string): Promise<WebrtcSignalingFwd> {
|
2149
2151
|
const response = await this.send({
|
2150
|
-
webrtc_signaling_fwd: { receiver_id: receiver_id, data_type: data_type, json_data: json_data, channel_id: channel_id },
|
2152
|
+
webrtc_signaling_fwd: { receiver_id: receiver_id, data_type: data_type, json_data: json_data, channel_id: channel_id, caller_id: caller_id },
|
2151
2153
|
});
|
2152
2154
|
return response.webrtc_signaling_fwd;
|
2153
2155
|
}
|