mezon-js 2.11.4 → 2.11.6
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/dist/socket.d.ts +6 -1
- package/package.json +1 -1
- package/socket.ts +6 -0
package/dist/socket.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 { ApiChannelDescription, ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotificationUserChannel, ApiPermissionUpdate, ApiRole, ApiRpc, ApiTokenSentEvent, ApiUserActivity, ApiWebhook } from "./api.gen";
|
16
|
+
import { ApiChannelDescription, ApiChannelMessage, ApiChannelMessageHeader, ApiCreateEventRequest, ApiGiveCoffeeEvent, ApiMessageAttachment, ApiMessageMention, ApiMessageReaction, ApiMessageRef, ApiNotificationUserChannel, ApiPermissionUpdate, ApiRole, ApiRpc, ApiTokenSentEvent, ApiUserActivity, ApiWebhook } from "./api.gen";
|
17
17
|
import { Session } from "./session";
|
18
18
|
import { ChannelMessage } from "./client";
|
19
19
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
@@ -116,6 +116,8 @@ export interface UserProfileRedis {
|
|
116
116
|
create_time_second: number;
|
117
117
|
/** online */
|
118
118
|
online: boolean;
|
119
|
+
/** clans */
|
120
|
+
joined_clans: number[];
|
119
121
|
}
|
120
122
|
/** UserChannelAddedEvent */
|
121
123
|
export interface UserChannelAddedEvent {
|
@@ -685,6 +687,9 @@ export interface SdTopicEvent {
|
|
685
687
|
clan_id: string;
|
686
688
|
channel_id: string;
|
687
689
|
message_id: string;
|
690
|
+
user_id: string;
|
691
|
+
last_sent_message?: ApiChannelMessageHeader;
|
692
|
+
message?: ApiChannelMessage;
|
688
693
|
}
|
689
694
|
export interface UserStatusEvent {
|
690
695
|
user_id: string;
|
package/package.json
CHANGED
package/socket.ts
CHANGED
@@ -16,6 +16,7 @@
|
|
16
16
|
|
17
17
|
import {
|
18
18
|
ApiChannelDescription,
|
19
|
+
ApiChannelMessage,
|
19
20
|
ApiChannelMessageHeader,
|
20
21
|
ApiCreateEventRequest,
|
21
22
|
ApiGiveCoffeeEvent,
|
@@ -163,6 +164,8 @@ export interface UserProfileRedis {
|
|
163
164
|
create_time_second: number;
|
164
165
|
/** online */
|
165
166
|
online: boolean;
|
167
|
+
/** clans */
|
168
|
+
joined_clans: number[];
|
166
169
|
}
|
167
170
|
|
168
171
|
/** UserChannelAddedEvent */
|
@@ -966,6 +969,9 @@ export interface SdTopicEvent {
|
|
966
969
|
clan_id: string;
|
967
970
|
channel_id: string;
|
968
971
|
message_id: string;
|
972
|
+
user_id: string;
|
973
|
+
last_sent_message?: ApiChannelMessageHeader;
|
974
|
+
message?: ApiChannelMessage;
|
969
975
|
}
|
970
976
|
|
971
977
|
export interface UserStatusEvent {
|