multichat-ts 0.0.8 → 0.0.81
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/kick.d.ts +134 -3
- package/package.json +1 -1
- package/src/kick.ts +6 -6
package/dist/kick.d.ts
CHANGED
|
@@ -28,7 +28,138 @@ export declare class KickPusher {
|
|
|
28
28
|
private onChatGifted;
|
|
29
29
|
private onChatMessage;
|
|
30
30
|
}
|
|
31
|
-
interface
|
|
31
|
+
export interface GetChannelResponse {
|
|
32
|
+
id: number;
|
|
33
|
+
user_id: number;
|
|
34
|
+
slug: string;
|
|
35
|
+
is_banned: boolean;
|
|
36
|
+
playback_url?: string;
|
|
37
|
+
vod_enabled: boolean;
|
|
38
|
+
subscription_enabled: boolean;
|
|
39
|
+
followers_count: number;
|
|
40
|
+
following?: boolean;
|
|
41
|
+
subscription?: unknown;
|
|
42
|
+
subscriber_badges: Array<{
|
|
43
|
+
id: number;
|
|
44
|
+
channel_id: number;
|
|
45
|
+
months: number;
|
|
46
|
+
badge_image: {
|
|
47
|
+
srcset: string;
|
|
48
|
+
src: string;
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
banner_image?: {
|
|
52
|
+
url: string;
|
|
53
|
+
};
|
|
54
|
+
livestream?: ChannelLivestream;
|
|
55
|
+
role?: unknown;
|
|
56
|
+
muted: boolean;
|
|
57
|
+
follower_badges: unknown[];
|
|
58
|
+
offline_banner_image: unknown;
|
|
59
|
+
verified: boolean;
|
|
60
|
+
recent_categories: Array<{
|
|
61
|
+
id: number;
|
|
62
|
+
category_id: number;
|
|
63
|
+
name: string;
|
|
64
|
+
slug: string;
|
|
65
|
+
tags: string[];
|
|
66
|
+
description?: string;
|
|
67
|
+
deleted_at: unknown;
|
|
68
|
+
viewers: number;
|
|
69
|
+
banner: {
|
|
70
|
+
responsive: string;
|
|
71
|
+
url: string;
|
|
72
|
+
};
|
|
73
|
+
category: {
|
|
74
|
+
id: number;
|
|
75
|
+
name: string;
|
|
76
|
+
slug: string;
|
|
77
|
+
icon: string;
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
80
|
+
can_host: boolean;
|
|
81
|
+
user: {
|
|
82
|
+
id: number;
|
|
83
|
+
username: string;
|
|
84
|
+
agreed_to_terms: true;
|
|
85
|
+
email_verified_at: Date;
|
|
86
|
+
bio?: string;
|
|
87
|
+
country?: string;
|
|
88
|
+
state?: string;
|
|
89
|
+
city?: string;
|
|
90
|
+
instagram?: string;
|
|
91
|
+
twitter?: string;
|
|
92
|
+
youtube?: string;
|
|
93
|
+
discord?: string;
|
|
94
|
+
tiktok?: string;
|
|
95
|
+
facebook?: string;
|
|
96
|
+
profile_pic?: string;
|
|
97
|
+
};
|
|
98
|
+
chatroom: ChannelChatroom;
|
|
99
|
+
ascending_links?: Array<{
|
|
100
|
+
id: number;
|
|
101
|
+
channel_id: number;
|
|
102
|
+
description: string;
|
|
103
|
+
link: string;
|
|
104
|
+
created_at: Date;
|
|
105
|
+
updated_at: Date;
|
|
106
|
+
order: number;
|
|
107
|
+
title: string;
|
|
108
|
+
}>;
|
|
109
|
+
}
|
|
110
|
+
export interface ChannelLivestream {
|
|
111
|
+
id: number;
|
|
112
|
+
slug: string;
|
|
113
|
+
channel_id: number;
|
|
114
|
+
created_at: Date;
|
|
115
|
+
session_title: string;
|
|
116
|
+
is_live: boolean;
|
|
117
|
+
risk_level_id: unknown;
|
|
118
|
+
start_time: Date;
|
|
119
|
+
source: unknown;
|
|
120
|
+
twitch_channel: unknown;
|
|
121
|
+
duration: number;
|
|
122
|
+
language: string;
|
|
123
|
+
is_mature: boolean;
|
|
124
|
+
viewer_count: number;
|
|
125
|
+
thumbnail: {
|
|
126
|
+
url: string;
|
|
127
|
+
};
|
|
128
|
+
categories: Array<{
|
|
129
|
+
id: number;
|
|
130
|
+
category_id: number;
|
|
131
|
+
name: string;
|
|
132
|
+
slug: string;
|
|
133
|
+
tags: string[];
|
|
134
|
+
description?: string;
|
|
135
|
+
deleted_at: unknown;
|
|
136
|
+
viewers: number;
|
|
137
|
+
category: {
|
|
138
|
+
id: number;
|
|
139
|
+
name: string;
|
|
140
|
+
slug: string;
|
|
141
|
+
icon: string;
|
|
142
|
+
};
|
|
143
|
+
}>;
|
|
144
|
+
tags: unknown[];
|
|
145
|
+
}
|
|
146
|
+
export interface ChannelChatroom {
|
|
147
|
+
id: number;
|
|
148
|
+
chatable_type: string;
|
|
149
|
+
channel_id: string;
|
|
150
|
+
created_at: Date;
|
|
151
|
+
updated_at: Date;
|
|
152
|
+
chat_mode_old: string;
|
|
153
|
+
chat_mode: string;
|
|
154
|
+
slow_mode: boolean;
|
|
155
|
+
chatable_id: number;
|
|
156
|
+
followers_mode: boolean;
|
|
157
|
+
subscribers_mode: boolean;
|
|
158
|
+
emotes_mode: boolean;
|
|
159
|
+
message_interval: number;
|
|
160
|
+
following_min_duration: number;
|
|
161
|
+
}
|
|
162
|
+
export interface ChatMessageEvent {
|
|
32
163
|
id: string;
|
|
33
164
|
chatroom_id: number;
|
|
34
165
|
content: string;
|
|
@@ -48,12 +179,12 @@ interface ChatMessageEvent {
|
|
|
48
179
|
};
|
|
49
180
|
};
|
|
50
181
|
}
|
|
51
|
-
interface ChatSubscriptionEvent {
|
|
182
|
+
export interface ChatSubscriptionEvent {
|
|
52
183
|
chatroom_id: string;
|
|
53
184
|
username: string;
|
|
54
185
|
months: number;
|
|
55
186
|
}
|
|
56
|
-
interface ChatGiftedEvent {
|
|
187
|
+
export interface ChatGiftedEvent {
|
|
57
188
|
chatroom_id: string;
|
|
58
189
|
gifted_usernames: string[];
|
|
59
190
|
gifter_username: string;
|
package/package.json
CHANGED
package/src/kick.ts
CHANGED
|
@@ -245,7 +245,7 @@ export class KickPusher {
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
interface GetChannelResponse {
|
|
248
|
+
export interface GetChannelResponse {
|
|
249
249
|
id: number;
|
|
250
250
|
user_id: number;
|
|
251
251
|
slug: string;
|
|
@@ -325,7 +325,7 @@ interface GetChannelResponse {
|
|
|
325
325
|
}>;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
interface ChannelLivestream {
|
|
328
|
+
export interface ChannelLivestream {
|
|
329
329
|
id: number;
|
|
330
330
|
slug: string;
|
|
331
331
|
channel_id: number;
|
|
@@ -361,7 +361,7 @@ interface ChannelLivestream {
|
|
|
361
361
|
}>;
|
|
362
362
|
tags: unknown[];
|
|
363
363
|
}
|
|
364
|
-
interface ChannelChatroom {
|
|
364
|
+
export interface ChannelChatroom {
|
|
365
365
|
id: number;
|
|
366
366
|
chatable_type: string;
|
|
367
367
|
channel_id: string;
|
|
@@ -377,7 +377,7 @@ interface ChannelChatroom {
|
|
|
377
377
|
message_interval: number;
|
|
378
378
|
following_min_duration: number;
|
|
379
379
|
}
|
|
380
|
-
interface ChatMessageEvent {
|
|
380
|
+
export interface ChatMessageEvent {
|
|
381
381
|
id: string;
|
|
382
382
|
chatroom_id: number;
|
|
383
383
|
content: string;
|
|
@@ -398,13 +398,13 @@ interface ChatMessageEvent {
|
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
interface ChatSubscriptionEvent {
|
|
401
|
+
export interface ChatSubscriptionEvent {
|
|
402
402
|
chatroom_id: string;
|
|
403
403
|
username: string;
|
|
404
404
|
months: number;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
interface ChatGiftedEvent {
|
|
407
|
+
export interface ChatGiftedEvent {
|
|
408
408
|
chatroom_id: string;
|
|
409
409
|
gifted_usernames: string[];
|
|
410
410
|
gifter_username: string;
|