mezon-js 2.12.74 → 2.12.76
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 +9 -1
- package/dist/api.gen.d.ts +5 -1
- package/dist/mezon-js.cjs.js +7 -0
- package/dist/mezon-js.esm.mjs +7 -0
- package/dist/socket.d.ts +10 -1
- package/package.json +1 -1
- package/socket.ts +19 -1
package/api.gen.ts
CHANGED
@@ -946,6 +946,12 @@ export interface ApiClanDesc {
|
|
946
946
|
is_community?: boolean;
|
947
947
|
// community banner
|
948
948
|
community_banner?: string;
|
949
|
+
// description
|
950
|
+
description?: string;
|
951
|
+
// about
|
952
|
+
about?: string;
|
953
|
+
// short url for community
|
954
|
+
short_url?: string;
|
949
955
|
}
|
950
956
|
|
951
957
|
/** */
|
@@ -1424,10 +1430,12 @@ export interface ApiGenerateMeetTokenExternalResponse {
|
|
1424
1430
|
/** */
|
1425
1431
|
export interface ApiMeetParticipantRequest {
|
1426
1432
|
//
|
1427
|
-
|
1433
|
+
room_name?: string;
|
1428
1434
|
//
|
1429
1435
|
username?: string;
|
1430
1436
|
//
|
1437
|
+
channel_id?: string;
|
1438
|
+
//
|
1431
1439
|
clan_id?: string;
|
1432
1440
|
}
|
1433
1441
|
|
package/dist/api.gen.d.ts
CHANGED
@@ -535,6 +535,9 @@ export interface ApiClanDesc {
|
|
535
535
|
onboarding_banner?: string;
|
536
536
|
is_community?: boolean;
|
537
537
|
community_banner?: string;
|
538
|
+
description?: string;
|
539
|
+
about?: string;
|
540
|
+
short_url?: string;
|
538
541
|
}
|
539
542
|
/** */
|
540
543
|
export interface ApiClanDescList {
|
@@ -809,8 +812,9 @@ export interface ApiGenerateMeetTokenExternalResponse {
|
|
809
812
|
}
|
810
813
|
/** */
|
811
814
|
export interface ApiMeetParticipantRequest {
|
812
|
-
|
815
|
+
room_name?: string;
|
813
816
|
username?: string;
|
817
|
+
channel_id?: string;
|
814
818
|
clan_id?: string;
|
815
819
|
}
|
816
820
|
/** */
|
package/dist/mezon-js.cjs.js
CHANGED
@@ -7343,6 +7343,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7343
7343
|
this.onunpinmessageevent(message.unpin_message_event);
|
7344
7344
|
} else if (message.quick_menu_event) {
|
7345
7345
|
this.onquickmenuevent(message.quick_menu_event);
|
7346
|
+
} else if (message.meet_participant_event) {
|
7347
|
+
this.onmeetparticipantevent(message.meet_participant_event);
|
7346
7348
|
} else {
|
7347
7349
|
if (this.verbose && window && window.console) {
|
7348
7350
|
console.log("Unrecognized message received: %o", message);
|
@@ -7720,6 +7722,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7720
7722
|
console.log(event);
|
7721
7723
|
}
|
7722
7724
|
}
|
7725
|
+
onmeetparticipantevent(event) {
|
7726
|
+
if (this.verbose && window && window.console) {
|
7727
|
+
console.log(event);
|
7728
|
+
}
|
7729
|
+
}
|
7723
7730
|
send(message, sendTimeout = _DefaultSocket.DefaultSendTimeoutMs) {
|
7724
7731
|
const untypedMessage = message;
|
7725
7732
|
return new Promise((resolve, reject) => {
|
package/dist/mezon-js.esm.mjs
CHANGED
@@ -7309,6 +7309,8 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7309
7309
|
this.onunpinmessageevent(message.unpin_message_event);
|
7310
7310
|
} else if (message.quick_menu_event) {
|
7311
7311
|
this.onquickmenuevent(message.quick_menu_event);
|
7312
|
+
} else if (message.meet_participant_event) {
|
7313
|
+
this.onmeetparticipantevent(message.meet_participant_event);
|
7312
7314
|
} else {
|
7313
7315
|
if (this.verbose && window && window.console) {
|
7314
7316
|
console.log("Unrecognized message received: %o", message);
|
@@ -7686,6 +7688,11 @@ var _DefaultSocket = class _DefaultSocket {
|
|
7686
7688
|
console.log(event);
|
7687
7689
|
}
|
7688
7690
|
}
|
7691
|
+
onmeetparticipantevent(event) {
|
7692
|
+
if (this.verbose && window && window.console) {
|
7693
|
+
console.log(event);
|
7694
|
+
}
|
7695
|
+
}
|
7689
7696
|
send(message, sendTimeout = _DefaultSocket.DefaultSendTimeoutMs) {
|
7690
7697
|
const untypedMessage = message;
|
7691
7698
|
return new Promise((resolve, reject) => {
|
package/dist/socket.d.ts
CHANGED
@@ -473,6 +473,13 @@ export interface ClanProfileUpdatedEvent {
|
|
473
473
|
clan_avatar: string;
|
474
474
|
clan_id: string;
|
475
475
|
}
|
476
|
+
export interface MeetParticipantEvent {
|
477
|
+
username: string;
|
478
|
+
room_name: string;
|
479
|
+
channel_id: string;
|
480
|
+
clan_id: string;
|
481
|
+
action: number;
|
482
|
+
}
|
476
483
|
/** Stream identifier */
|
477
484
|
export interface StreamId {
|
478
485
|
/** The type of stream (e.g. chat). */
|
@@ -1004,7 +1011,8 @@ export interface Socket {
|
|
1004
1011
|
oneventnotiuserchannel: (noti_user_channel: ApiNotificationUserChannel) => void;
|
1005
1012
|
oneventwebhook: (webhook_event: ApiWebhook) => void;
|
1006
1013
|
onroleassign: (role_assign_event: RoleAssignedEvent) => void;
|
1007
|
-
ondeleteaccount: (
|
1014
|
+
ondeleteaccount: (delete_account_event: DeleteAccountEvent) => void;
|
1015
|
+
onmeetparticipantevent: (event: MeetParticipantEvent) => void;
|
1008
1016
|
onstreamingchannelstarted: (streaming_started_event: StreamingStartedEvent) => void;
|
1009
1017
|
onstreamingchannelended: (streaming_ended_event: StreamingEndedEvent) => void;
|
1010
1018
|
onstreamingchanneljoined: (streaming_joined_event: StreamingJoinedEvent) => void;
|
@@ -1114,6 +1122,7 @@ export declare class DefaultSocket implements Socket {
|
|
1114
1122
|
onjoinchannelappevent(join_channel_app_data: JoinChannelAppData): void;
|
1115
1123
|
onunpinmessageevent(unpin_message_event: UnpinMessageEvent): void;
|
1116
1124
|
onquickmenuevent(event: QuickMenuEvent): void;
|
1125
|
+
onmeetparticipantevent(event: MeetParticipantEvent): void;
|
1117
1126
|
send(message: ChannelJoin | ChannelLeave | ChannelMessageSend | ChannelMessageUpdate | CustomStatusEvent | ChannelMessageRemove | MessageTypingEvent | LastSeenMessageEvent | Rpc | StatusFollow | StatusUnfollow | StatusUpdate | Ping | WebrtcSignalingFwd | IncomingCallPush | MessageButtonClicked | DropdownBoxSelected | ChannelAppEvent | EphemeralMessageSend | VoiceReactionSend | ListDataSocket | QuickMenuEvent, sendTimeout?: number): Promise<any>;
|
1118
1127
|
followUsers(userIds: string[]): Promise<Status>;
|
1119
1128
|
joinClanChat(clan_id: string): Promise<ClanJoin>;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -765,6 +765,14 @@ export interface ClanProfileUpdatedEvent {
|
|
765
765
|
clan_id: string;
|
766
766
|
}
|
767
767
|
|
768
|
+
export interface MeetParticipantEvent {
|
769
|
+
username: string;
|
770
|
+
room_name: string;
|
771
|
+
channel_id: string;
|
772
|
+
clan_id: string;
|
773
|
+
action: number;
|
774
|
+
}
|
775
|
+
|
768
776
|
/** Stream identifier */
|
769
777
|
export interface StreamId {
|
770
778
|
/** The type of stream (e.g. chat). */
|
@@ -1732,7 +1740,9 @@ export interface Socket {
|
|
1732
1740
|
|
1733
1741
|
onroleassign: (role_assign_event: RoleAssignedEvent) => void;
|
1734
1742
|
|
1735
|
-
ondeleteaccount: (
|
1743
|
+
ondeleteaccount: (delete_account_event: DeleteAccountEvent) => void;
|
1744
|
+
|
1745
|
+
onmeetparticipantevent: (event: MeetParticipantEvent) => void;
|
1736
1746
|
|
1737
1747
|
onstreamingchannelstarted: (
|
1738
1748
|
streaming_started_event: StreamingStartedEvent
|
@@ -2018,6 +2028,8 @@ export class DefaultSocket implements Socket {
|
|
2018
2028
|
this.onunpinmessageevent(<UnpinMessageEvent>message.unpin_message_event);
|
2019
2029
|
} else if (message.quick_menu_event) {
|
2020
2030
|
this.onquickmenuevent(<QuickMenuEvent>message.quick_menu_event);
|
2031
|
+
} else if (message.meet_participant_event) {
|
2032
|
+
this.onmeetparticipantevent(<MeetParticipantEvent>message.meet_participant_event);
|
2021
2033
|
} else {
|
2022
2034
|
if (this.verbose && window && window.console) {
|
2023
2035
|
console.log("Unrecognized message received: %o", message);
|
@@ -2469,6 +2481,12 @@ export class DefaultSocket implements Socket {
|
|
2469
2481
|
}
|
2470
2482
|
}
|
2471
2483
|
|
2484
|
+
onmeetparticipantevent(event: MeetParticipantEvent) {
|
2485
|
+
if (this.verbose && window && window.console) {
|
2486
|
+
console.log(event);
|
2487
|
+
}
|
2488
|
+
}
|
2489
|
+
|
2472
2490
|
send(
|
2473
2491
|
message:
|
2474
2492
|
| ChannelJoin
|