mezon-js 2.11.39 → 2.11.40
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/client.ts +1 -1
- package/dist/mezon-js.cjs.js +0 -13
- package/dist/mezon-js.esm.mjs +0 -13
- package/dist/socket.d.ts +1 -4
- package/package.json +1 -1
- package/socket.ts +1 -26
package/client.ts
CHANGED
package/dist/mezon-js.cjs.js
CHANGED
@@ -8387,19 +8387,6 @@ var _DefaultSocket = class _DefaultSocket {
|
|
8387
8387
|
return response.voice_joined_event;
|
8388
8388
|
});
|
8389
8389
|
}
|
8390
|
-
writeVoiceLeaved(id, clanId, voiceChannelId, voiceUserId) {
|
8391
|
-
return __async(this, null, function* () {
|
8392
|
-
const response = yield this.send({
|
8393
|
-
voice_leaved_event: {
|
8394
|
-
id,
|
8395
|
-
clan_id: clanId,
|
8396
|
-
voice_channel_id: voiceChannelId,
|
8397
|
-
voice_user_id: voiceUserId
|
8398
|
-
}
|
8399
|
-
});
|
8400
|
-
return response.voice_leaved_event;
|
8401
|
-
});
|
8402
|
-
}
|
8403
8390
|
writeCustomStatus(clan_id, status, time_reset, no_clear) {
|
8404
8391
|
return __async(this, null, function* () {
|
8405
8392
|
const response = yield this.send({
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -8353,19 +8353,6 @@ var _DefaultSocket = class _DefaultSocket {
|
|
8353
8353
|
return response.voice_joined_event;
|
8354
8354
|
});
|
8355
8355
|
}
|
8356
|
-
writeVoiceLeaved(id, clanId, voiceChannelId, voiceUserId) {
|
8357
|
-
return __async(this, null, function* () {
|
8358
|
-
const response = yield this.send({
|
8359
|
-
voice_leaved_event: {
|
8360
|
-
id,
|
8361
|
-
clan_id: clanId,
|
8362
|
-
voice_channel_id: voiceChannelId,
|
8363
|
-
voice_user_id: voiceUserId
|
8364
|
-
}
|
8365
|
-
});
|
8366
|
-
return response.voice_leaved_event;
|
8367
|
-
});
|
8368
|
-
}
|
8369
8356
|
writeCustomStatus(clan_id, status, time_reset, no_clear) {
|
8370
8357
|
return __async(this, null, function* () {
|
8371
8358
|
const response = yield this.send({
|
package/dist/socket.d.ts
CHANGED
@@ -289,7 +289,7 @@ export interface VoiceStartedEvent {
|
|
289
289
|
voice_channel_id: string;
|
290
290
|
}
|
291
291
|
export interface VoiceLeavedEvent {
|
292
|
-
|
292
|
+
ids: Array<string>;
|
293
293
|
clan_id: string;
|
294
294
|
voice_channel_id: string;
|
295
295
|
voice_user_id: string;
|
@@ -785,8 +785,6 @@ export interface Socket {
|
|
785
785
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
786
786
|
/** send voice joined */
|
787
787
|
writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
|
788
|
-
/** send voice leaved */
|
789
|
-
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
790
788
|
setHeartbeatTimeoutMs(ms: number): void;
|
791
789
|
getHeartbeatTimeoutMs(): number;
|
792
790
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
@@ -987,7 +985,6 @@ export declare class DefaultSocket implements Socket {
|
|
987
985
|
writeLastSeenMessage(clan_id: string, channel_id: string, mode: number, message_id: string, timestamp_seconds: number, badge_count: number): Promise<LastSeenMessageEvent>;
|
988
986
|
writeLastPinMessage(clan_id: string, channel_id: string, mode: number, is_public: boolean, message_id: string, timestamp_seconds: number, operation: number): Promise<LastPinMessageEvent>;
|
989
987
|
writeVoiceJoined(id: string, clanId: string, clanName: string, voiceChannelId: string, voiceChannelLabel: string, participant: string, lastScreenshot: string): Promise<VoiceJoinedEvent>;
|
990
|
-
writeVoiceLeaved(id: string, clanId: string, voiceChannelId: string, voiceUserId: string): Promise<VoiceLeavedEvent>;
|
991
988
|
writeCustomStatus(clan_id: string, status: string, time_reset: number, no_clear: boolean): Promise<CustomStatusEvent>;
|
992
989
|
checkDuplicateName(name: string, condition_id: string, type: number): Promise<CheckNameExistedEvent>;
|
993
990
|
forwardWebrtcSignaling(receiver_id: string, data_type: number, json_data: string, channel_id: string, caller_id: string): Promise<WebrtcSignalingFwd>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -417,7 +417,7 @@ export interface VoiceStartedEvent {
|
|
417
417
|
|
418
418
|
export interface VoiceLeavedEvent {
|
419
419
|
// event id
|
420
|
-
|
420
|
+
ids: Array<string>;
|
421
421
|
// clan id
|
422
422
|
clan_id: string;
|
423
423
|
// voice channel name
|
@@ -1218,14 +1218,6 @@ export interface Socket {
|
|
1218
1218
|
lastScreenshot: string
|
1219
1219
|
): Promise<VoiceJoinedEvent>;
|
1220
1220
|
|
1221
|
-
/** send voice leaved */
|
1222
|
-
writeVoiceLeaved(
|
1223
|
-
id: string,
|
1224
|
-
clanId: string,
|
1225
|
-
voiceChannelId: string,
|
1226
|
-
voiceUserId: string
|
1227
|
-
): Promise<VoiceLeavedEvent>;
|
1228
|
-
|
1229
1221
|
/* Set the heartbeat timeout used by the socket to detect if it has lost connectivity to the server. */
|
1230
1222
|
setHeartbeatTimeoutMs(ms: number): void;
|
1231
1223
|
|
@@ -2529,23 +2521,6 @@ export class DefaultSocket implements Socket {
|
|
2529
2521
|
return response.voice_joined_event;
|
2530
2522
|
}
|
2531
2523
|
|
2532
|
-
async writeVoiceLeaved(
|
2533
|
-
id: string,
|
2534
|
-
clanId: string,
|
2535
|
-
voiceChannelId: string,
|
2536
|
-
voiceUserId: string
|
2537
|
-
): Promise<VoiceLeavedEvent> {
|
2538
|
-
const response = await this.send({
|
2539
|
-
voice_leaved_event: {
|
2540
|
-
id: id,
|
2541
|
-
clan_id: clanId,
|
2542
|
-
voice_channel_id: voiceChannelId,
|
2543
|
-
voice_user_id: voiceUserId,
|
2544
|
-
},
|
2545
|
-
});
|
2546
|
-
return response.voice_leaved_event;
|
2547
|
-
}
|
2548
|
-
|
2549
2524
|
async writeCustomStatus(
|
2550
2525
|
clan_id: string,
|
2551
2526
|
status: string,
|