mezon-js 2.11.29 → 2.11.30
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 -1
- package/client.ts +3 -2
- package/dist/api.gen.d.ts +6 -1
- package/dist/client.d.ts +2 -2
- package/dist/mezon-js.cjs.js +2 -1
- package/dist/mezon-js.esm.mjs +2 -1
- package/package.json +1 -1
package/api.gen.ts
CHANGED
@@ -1428,6 +1428,14 @@ export interface ApiGenerateMezonMeetResponse {
|
|
1428
1428
|
event_id?: string;
|
1429
1429
|
}
|
1430
1430
|
|
1431
|
+
/** */
|
1432
|
+
export interface ApiGenerateMeetTokenExternalResponse {
|
1433
|
+
//
|
1434
|
+
guest_user_id?: string;
|
1435
|
+
//
|
1436
|
+
token?: string;
|
1437
|
+
}
|
1438
|
+
|
1431
1439
|
/** */
|
1432
1440
|
export interface ApiGetPubKeysResponse {
|
1433
1441
|
//
|
@@ -11548,7 +11556,8 @@ export class MezonApi {
|
|
11548
11556
|
generateMeetTokenExternal(bearerToken: string,
|
11549
11557
|
token:string,
|
11550
11558
|
displayName?:string,
|
11551
|
-
|
11559
|
+
isGuest?:boolean,
|
11560
|
+
options: any = {}): Promise<ApiGenerateMeetTokenExternalResponse> {
|
11552
11561
|
|
11553
11562
|
if (token === null || token === undefined) {
|
11554
11563
|
throw new Error("'token' is a required parameter but is null or undefined.");
|
@@ -11557,6 +11566,7 @@ export class MezonApi {
|
|
11557
11566
|
.replace("{token}", encodeURIComponent(String(token)));
|
11558
11567
|
const queryParams = new Map<string, any>();
|
11559
11568
|
queryParams.set("display_name", displayName);
|
11569
|
+
queryParams.set("is_guest", isGuest);
|
11560
11570
|
|
11561
11571
|
let bodyJson : string = "";
|
11562
11572
|
|
package/client.ts
CHANGED
@@ -168,6 +168,7 @@ import {
|
|
168
168
|
ApiUserEventRequest,
|
169
169
|
ApiUpdateRoleOrderRequest,
|
170
170
|
ApiGenerateMezonMeetResponse,
|
171
|
+
ApiGenerateMeetTokenExternalResponse,
|
171
172
|
} from "./api.gen";
|
172
173
|
|
173
174
|
import { Session } from "./session";
|
@@ -5198,10 +5199,10 @@ export class Client {
|
|
5198
5199
|
async generateMeetTokenExternal(
|
5199
5200
|
token:string,
|
5200
5201
|
displayName?:string,
|
5201
|
-
): Promise<
|
5202
|
+
): Promise<ApiGenerateMeetTokenExternalResponse> {
|
5202
5203
|
return this.apiClient
|
5203
5204
|
.generateMeetTokenExternal("", token, displayName)
|
5204
|
-
.then((response:
|
5205
|
+
.then((response: ApiGenerateMeetTokenExternalResponse) => {
|
5205
5206
|
return Promise.resolve(response);
|
5206
5207
|
});
|
5207
5208
|
}
|
package/dist/api.gen.d.ts
CHANGED
@@ -817,6 +817,11 @@ export interface ApiGenerateMezonMeetResponse {
|
|
817
817
|
event_id?: string;
|
818
818
|
}
|
819
819
|
/** */
|
820
|
+
export interface ApiGenerateMeetTokenExternalResponse {
|
821
|
+
guest_user_id?: string;
|
822
|
+
token?: string;
|
823
|
+
}
|
824
|
+
/** */
|
820
825
|
export interface ApiGetPubKeysResponse {
|
821
826
|
pub_keys?: Array<GetPubKeysResponseUserPubKey>;
|
822
827
|
}
|
@@ -2238,5 +2243,5 @@ export declare class MezonApi {
|
|
2238
2243
|
/** Create external Mezon meet */
|
2239
2244
|
createExternalMezonMeet(bearerToken: string, options?: any): Promise<ApiGenerateMezonMeetResponse>;
|
2240
2245
|
/** handler external mezon meet */
|
2241
|
-
generateMeetTokenExternal(bearerToken: string, token: string, displayName?: string, options?: any): Promise<
|
2246
|
+
generateMeetTokenExternal(bearerToken: string, token: string, displayName?: string, isGuest?: boolean, options?: any): Promise<ApiGenerateMeetTokenExternalResponse>;
|
2242
2247
|
}
|
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, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, 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, MezonUpdateEventBody, ApiTransactionDetail, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, MezonapiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse } from "./api.gen";
|
16
|
+
import { ApiAccount, ApiAccountMezon, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, 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, MezonUpdateEventBody, ApiTransactionDetail, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, MezonapiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse } from "./api.gen";
|
17
17
|
import { Session } from "./session";
|
18
18
|
import { Socket } from "./socket";
|
19
19
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
@@ -656,5 +656,5 @@ export declare class Client {
|
|
656
656
|
updateRoleOrder(session: Session, request: ApiUpdateRoleOrderRequest): Promise<any>;
|
657
657
|
deleteAccount(session: Session): Promise<any>;
|
658
658
|
createExternalMezonMeet(session: Session): Promise<ApiGenerateMezonMeetResponse>;
|
659
|
-
generateMeetTokenExternal(token: string, displayName?: string): Promise<
|
659
|
+
generateMeetTokenExternal(token: string, displayName?: string): Promise<ApiGenerateMeetTokenExternalResponse>;
|
660
660
|
}
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -7279,13 +7279,14 @@ var MezonApi = class {
|
|
7279
7279
|
]);
|
7280
7280
|
}
|
7281
7281
|
/** handler external mezon meet */
|
7282
|
-
generateMeetTokenExternal(bearerToken, token, displayName, options = {}) {
|
7282
|
+
generateMeetTokenExternal(bearerToken, token, displayName, isGuest, options = {}) {
|
7283
7283
|
if (token === null || token === void 0) {
|
7284
7284
|
throw new Error("'token' is a required parameter but is null or undefined.");
|
7285
7285
|
}
|
7286
7286
|
const urlPath = "/v2/meet/external/{token}".replace("{token}", encodeURIComponent(String(token)));
|
7287
7287
|
const queryParams = /* @__PURE__ */ new Map();
|
7288
7288
|
queryParams.set("display_name", displayName);
|
7289
|
+
queryParams.set("is_guest", isGuest);
|
7289
7290
|
let bodyJson = "";
|
7290
7291
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
7291
7292
|
const fetchOptions = buildFetchOptions("POST", options, bodyJson);
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7245,13 +7245,14 @@ var MezonApi = class {
|
|
7245
7245
|
]);
|
7246
7246
|
}
|
7247
7247
|
/** handler external mezon meet */
|
7248
|
-
generateMeetTokenExternal(bearerToken, token, displayName, options = {}) {
|
7248
|
+
generateMeetTokenExternal(bearerToken, token, displayName, isGuest, options = {}) {
|
7249
7249
|
if (token === null || token === void 0) {
|
7250
7250
|
throw new Error("'token' is a required parameter but is null or undefined.");
|
7251
7251
|
}
|
7252
7252
|
const urlPath = "/v2/meet/external/{token}".replace("{token}", encodeURIComponent(String(token)));
|
7253
7253
|
const queryParams = /* @__PURE__ */ new Map();
|
7254
7254
|
queryParams.set("display_name", displayName);
|
7255
|
+
queryParams.set("is_guest", isGuest);
|
7255
7256
|
let bodyJson = "";
|
7256
7257
|
const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
|
7257
7258
|
const fetchOptions = buildFetchOptions("POST", options, bodyJson);
|