mezon-js 2.9.12 → 2.9.14
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 +557 -0
- package/client.ts +191 -0
- package/dist/api.gen.d.ts +135 -0
- package/dist/client.d.ts +11 -1
- package/dist/mezon-js.cjs.js +388 -0
- package/dist/mezon-js.esm.mjs +388 -0
- package/dist/socket.d.ts +4 -4
- package/package.json +1 -1
- package/socket.ts +6 -6
package/client.ts
CHANGED
@@ -108,6 +108,14 @@ import {
|
|
108
108
|
ApiRegisterStreamingChannelResponse,
|
109
109
|
ApiRoleList,
|
110
110
|
ApiListChannelAppsResponse,
|
111
|
+
ApiNotificationChannelCategorySettingList,
|
112
|
+
ApiNotificationUserChannel,
|
113
|
+
ApiNotificationSetting,
|
114
|
+
ApiNotifiReactMessage,
|
115
|
+
ApiHashtagDmList,
|
116
|
+
ApiEmojiListedResponse,
|
117
|
+
ApiStickerListedResponse,
|
118
|
+
ApiAllUsersAddChannelResponse,
|
111
119
|
} from "./api.gen";
|
112
120
|
|
113
121
|
import { Session } from "./session";
|
@@ -3599,4 +3607,187 @@ export class Client {
|
|
3599
3607
|
return Promise.resolve(result);
|
3600
3608
|
});
|
3601
3609
|
}
|
3610
|
+
|
3611
|
+
async getChannelCategoryNotiSettingsList(
|
3612
|
+
session: Session,
|
3613
|
+
clanId: string
|
3614
|
+
): Promise<ApiNotificationChannelCategorySettingList> {
|
3615
|
+
if (
|
3616
|
+
this.autoRefreshSession &&
|
3617
|
+
session.refresh_token &&
|
3618
|
+
session.isexpired((Date.now() + this.expiredTimespanMs) / 1000)
|
3619
|
+
) {
|
3620
|
+
await this.sessionRefresh(session);
|
3621
|
+
}
|
3622
|
+
|
3623
|
+
return this.apiClient
|
3624
|
+
.getChannelCategoryNotiSettingsList(session.token, clanId)
|
3625
|
+
.then((response: ApiNotificationChannelCategorySettingList) => {
|
3626
|
+
return Promise.resolve(response);
|
3627
|
+
});
|
3628
|
+
}
|
3629
|
+
|
3630
|
+
async getNotificationCategory(
|
3631
|
+
session: Session,
|
3632
|
+
categoryId: string
|
3633
|
+
): Promise<ApiNotificationUserChannel> {
|
3634
|
+
if (
|
3635
|
+
this.autoRefreshSession &&
|
3636
|
+
session.refresh_token &&
|
3637
|
+
session.isexpired((Date.now() + this.expiredTimespanMs) / 1000)
|
3638
|
+
) {
|
3639
|
+
await this.sessionRefresh(session);
|
3640
|
+
}
|
3641
|
+
|
3642
|
+
return this.apiClient
|
3643
|
+
.getNotificationCategory(session.token, categoryId)
|
3644
|
+
.then((response: ApiNotificationUserChannel) => {
|
3645
|
+
return Promise.resolve(response);
|
3646
|
+
});
|
3647
|
+
}
|
3648
|
+
|
3649
|
+
async getNotificationChannel(
|
3650
|
+
session: Session,
|
3651
|
+
channelId: string
|
3652
|
+
): Promise<ApiNotificationUserChannel> {
|
3653
|
+
if (
|
3654
|
+
this.autoRefreshSession &&
|
3655
|
+
session.refresh_token &&
|
3656
|
+
session.isexpired((Date.now() + this.expiredTimespanMs) / 1000)
|
3657
|
+
) {
|
3658
|
+
await this.sessionRefresh(session);
|
3659
|
+
}
|
3660
|
+
|
3661
|
+
return this.apiClient
|
3662
|
+
.getNotificationChannel(session.token, channelId)
|
3663
|
+
.then((response: ApiNotificationUserChannel) => {
|
3664
|
+
return Promise.resolve(response);
|
3665
|
+
});
|
3666
|
+
}
|
3667
|
+
|
3668
|
+
async getNotificationClan(
|
3669
|
+
session: Session,
|
3670
|
+
clanId: string
|
3671
|
+
): Promise<ApiNotificationSetting> {
|
3672
|
+
if (
|
3673
|
+
this.autoRefreshSession &&
|
3674
|
+
session.refresh_token &&
|
3675
|
+
session.isexpired((Date.now() + this.expiredTimespanMs) / 1000)
|
3676
|
+
) {
|
3677
|
+
await this.sessionRefresh(session);
|
3678
|
+
}
|
3679
|
+
|
3680
|
+
return this.apiClient
|
3681
|
+
.getNotificationClan(session.token, clanId)
|
3682
|
+
.then((response: ApiNotificationSetting) => {
|
3683
|
+
return Promise.resolve(response);
|
3684
|
+
});
|
3685
|
+
}
|
3686
|
+
|
3687
|
+
async getNotificationReactMessage(
|
3688
|
+
session: Session,
|
3689
|
+
channelId: string
|
3690
|
+
): Promise<ApiNotifiReactMessage> {
|
3691
|
+
if (
|
3692
|
+
this.autoRefreshSession &&
|
3693
|
+
session.refresh_token &&
|
3694
|
+
session.isexpired((Date.now() + this.expiredTimespanMs) / 1000)
|
3695
|
+
) {
|
3696
|
+
await this.sessionRefresh(session);
|
3697
|
+
}
|
3698
|
+
|
3699
|
+
return this.apiClient
|
3700
|
+
.getNotificationReactMessage(session.token, channelId)
|
3701
|
+
.then((response: ApiNotifiReactMessage) => {
|
3702
|
+
return Promise.resolve(response);
|
3703
|
+
});
|
3704
|
+
}
|
3705
|
+
|
3706
|
+
async hashtagDMList(
|
3707
|
+
session: Session,
|
3708
|
+
userId: Array<string>,
|
3709
|
+
limit:number
|
3710
|
+
): Promise<ApiHashtagDmList> {
|
3711
|
+
if (
|
3712
|
+
this.autoRefreshSession &&
|
3713
|
+
session.refresh_token &&
|
3714
|
+
session.isexpired((Date.now() + this.expiredTimespanMs) / 1000)
|
3715
|
+
) {
|
3716
|
+
await this.sessionRefresh(session);
|
3717
|
+
}
|
3718
|
+
|
3719
|
+
return this.apiClient
|
3720
|
+
.hashtagDMList(session.token, userId, limit)
|
3721
|
+
.then((response: ApiHashtagDmList) => {
|
3722
|
+
return Promise.resolve(response);
|
3723
|
+
});
|
3724
|
+
}
|
3725
|
+
|
3726
|
+
async listChannelByUserId(
|
3727
|
+
session: Session
|
3728
|
+
): Promise<ApiChannelDescList> {
|
3729
|
+
if (
|
3730
|
+
this.autoRefreshSession &&
|
3731
|
+
session.refresh_token &&
|
3732
|
+
session.isexpired((Date.now() + this.expiredTimespanMs) / 1000)
|
3733
|
+
) {
|
3734
|
+
await this.sessionRefresh(session);
|
3735
|
+
}
|
3736
|
+
|
3737
|
+
return this.apiClient
|
3738
|
+
.listChannelByUserId(session.token)
|
3739
|
+
.then((response: ApiChannelDescList) => {
|
3740
|
+
return Promise.resolve(response);
|
3741
|
+
});
|
3742
|
+
}
|
3743
|
+
|
3744
|
+
|
3745
|
+
async listUsersAddChannelByChannelId(session: Session, channel_id : string, limit : number): Promise<ApiAllUsersAddChannelResponse> {
|
3746
|
+
if (
|
3747
|
+
this.autoRefreshSession &&
|
3748
|
+
session.refresh_token &&
|
3749
|
+
session.isexpired((Date.now() + this.expiredTimespanMs) / 1000)
|
3750
|
+
) {
|
3751
|
+
await this.sessionRefresh(session);
|
3752
|
+
}
|
3753
|
+
|
3754
|
+
return this.apiClient
|
3755
|
+
.listUsersAddChannelByChannelId(session.token, channel_id, limit)
|
3756
|
+
.then((response: any) => {
|
3757
|
+
return Promise.resolve(response);
|
3758
|
+
});
|
3759
|
+
}
|
3760
|
+
|
3761
|
+
async getListEmojisByUserId(session: Session): Promise<ApiEmojiListedResponse> {
|
3762
|
+
if (
|
3763
|
+
this.autoRefreshSession &&
|
3764
|
+
session.refresh_token &&
|
3765
|
+
session.isexpired((Date.now() + this.expiredTimespanMs) / 1000)
|
3766
|
+
) {
|
3767
|
+
await this.sessionRefresh(session);
|
3768
|
+
}
|
3769
|
+
|
3770
|
+
return this.apiClient
|
3771
|
+
.getListEmojisByUserId(session.token)
|
3772
|
+
.then((response: any) => {
|
3773
|
+
return Promise.resolve(response);
|
3774
|
+
});
|
3775
|
+
}
|
3776
|
+
|
3777
|
+
|
3778
|
+
async getListStickersByUserId(session: Session): Promise<ApiStickerListedResponse> {
|
3779
|
+
if (
|
3780
|
+
this.autoRefreshSession &&
|
3781
|
+
session.refresh_token &&
|
3782
|
+
session.isexpired((Date.now() + this.expiredTimespanMs) / 1000)
|
3783
|
+
) {
|
3784
|
+
await this.sessionRefresh(session);
|
3785
|
+
}
|
3786
|
+
|
3787
|
+
return this.apiClient
|
3788
|
+
.getListStickersByUserId(session.token)
|
3789
|
+
.then((response: any) => {
|
3790
|
+
return Promise.resolve(response);
|
3791
|
+
});
|
3792
|
+
}
|
3602
3793
|
}
|
package/dist/api.gen.d.ts
CHANGED
@@ -20,6 +20,9 @@ export interface ClanUserListClanUser {
|
|
20
20
|
export interface MezonChangeChannelCategoryBody {
|
21
21
|
channel_id?: string;
|
22
22
|
}
|
23
|
+
/** */
|
24
|
+
export interface MezonDeleteWebhookByIdBody {
|
25
|
+
}
|
23
26
|
/** Update app information. */
|
24
27
|
export interface MezonUpdateAppBody {
|
25
28
|
about?: string;
|
@@ -156,6 +159,13 @@ export interface ApiAccount {
|
|
156
159
|
verify_time?: string;
|
157
160
|
wallet?: string;
|
158
161
|
}
|
162
|
+
/** Send a app token to the server. Used with authenticate/link/unlink. */
|
163
|
+
export interface ApiAccountApp {
|
164
|
+
appid?: string;
|
165
|
+
appname?: string;
|
166
|
+
token?: string;
|
167
|
+
vars?: Record<string, string>;
|
168
|
+
}
|
159
169
|
/** Send a Apple Sign In token to the server. Used with authenticate/link/unlink. */
|
160
170
|
export interface ApiAccountApple {
|
161
171
|
token?: string;
|
@@ -214,6 +224,12 @@ export interface ApiAddRoleChannelDescRequest {
|
|
214
224
|
channel_id?: string;
|
215
225
|
role_ids?: Array<string>;
|
216
226
|
}
|
227
|
+
/** */
|
228
|
+
export interface ApiAllUsersAddChannelResponse {
|
229
|
+
channel_id?: string;
|
230
|
+
limit?: number;
|
231
|
+
user_ids?: Array<string>;
|
232
|
+
}
|
217
233
|
/** App information. */
|
218
234
|
export interface ApiApp {
|
219
235
|
about?: string;
|
@@ -232,6 +248,10 @@ export interface ApiAppList {
|
|
232
248
|
next_cursor?: string;
|
233
249
|
total_count?: number;
|
234
250
|
}
|
251
|
+
/** Authenticate against the server with a device ID. */
|
252
|
+
export interface ApiAuthenticateRequest {
|
253
|
+
account?: ApiAccountApp;
|
254
|
+
}
|
235
255
|
/** */
|
236
256
|
export interface ApiCategoryDesc {
|
237
257
|
category_id?: string;
|
@@ -298,6 +318,7 @@ export interface ApiChannelDescription {
|
|
298
318
|
channel_label?: string;
|
299
319
|
channel_private?: number;
|
300
320
|
clan_id?: string;
|
321
|
+
clan_name?: string;
|
301
322
|
count_mess_unread?: number;
|
302
323
|
create_time_seconds?: number;
|
303
324
|
creator_id?: string;
|
@@ -396,6 +417,17 @@ export interface ApiClanDescProfile {
|
|
396
417
|
profile_theme?: string;
|
397
418
|
}
|
398
419
|
/** */
|
420
|
+
export interface ApiClanEmoji {
|
421
|
+
category?: string;
|
422
|
+
clan_id?: string;
|
423
|
+
clan_name?: string;
|
424
|
+
creator_id?: string;
|
425
|
+
id?: string;
|
426
|
+
logo?: string;
|
427
|
+
shortname?: string;
|
428
|
+
src?: string;
|
429
|
+
}
|
430
|
+
/** */
|
399
431
|
export interface ApiClanEmojiCreateRequest {
|
400
432
|
category?: string;
|
401
433
|
clan_id?: string;
|
@@ -411,6 +443,18 @@ export interface ApiClanProfile {
|
|
411
443
|
user_id?: string;
|
412
444
|
}
|
413
445
|
/** */
|
446
|
+
export interface ApiClanSticker {
|
447
|
+
category?: string;
|
448
|
+
clan_id?: string;
|
449
|
+
clan_name?: string;
|
450
|
+
create_time?: string;
|
451
|
+
creator_id?: string;
|
452
|
+
id?: string;
|
453
|
+
logo?: string;
|
454
|
+
shortname?: string;
|
455
|
+
source?: string;
|
456
|
+
}
|
457
|
+
/** */
|
414
458
|
export interface ApiClanStickerAddRequest {
|
415
459
|
category?: string;
|
416
460
|
clan_id?: string;
|
@@ -531,6 +575,9 @@ export interface ApiRegisterStreamingChannelResponse {
|
|
531
575
|
export interface ApiListStreamingChannelsResponse {
|
532
576
|
streaming_channels?: Array<ApiStreamingChannelResponse>;
|
533
577
|
}
|
578
|
+
export interface ApiEmojiListedResponse {
|
579
|
+
emoji_list?: Array<ApiClanEmoji>;
|
580
|
+
}
|
534
581
|
/** */
|
535
582
|
export interface ApiEventList {
|
536
583
|
events?: Array<ApiEventManagement>;
|
@@ -577,6 +624,21 @@ export interface ApiGiveCoffeeEvent {
|
|
577
624
|
sender_id?: string;
|
578
625
|
token_count?: number;
|
579
626
|
}
|
627
|
+
/** */
|
628
|
+
export interface ApiHashtagDm {
|
629
|
+
channel_id?: string;
|
630
|
+
channel_label?: string;
|
631
|
+
channel_private?: number;
|
632
|
+
clan_id?: string;
|
633
|
+
clan_name?: string;
|
634
|
+
meeting_code?: string;
|
635
|
+
parrent_id?: string;
|
636
|
+
type?: number;
|
637
|
+
}
|
638
|
+
/** */
|
639
|
+
export interface ApiHashtagDmList {
|
640
|
+
hashtag_dm?: Array<ApiHashtagDm>;
|
641
|
+
}
|
580
642
|
/** Add link invite users to. */
|
581
643
|
export interface ApiInviteUserRes {
|
582
644
|
channel_id?: string;
|
@@ -673,6 +735,13 @@ export interface ApiMessageReaction {
|
|
673
735
|
parent_id?: string;
|
674
736
|
is_parent_public?: boolean;
|
675
737
|
}
|
738
|
+
export interface ApiListChannelAppsResponse {
|
739
|
+
channel_apps?: Array<ApiChannelAppResponse>;
|
740
|
+
}
|
741
|
+
/** */
|
742
|
+
export interface ApiListStreamingChannelsResponse {
|
743
|
+
streaming_channels?: Array<ApiStreamingChannelResponse>;
|
744
|
+
}
|
676
745
|
/** */
|
677
746
|
export interface ApiMessageRef {
|
678
747
|
message_id?: string;
|
@@ -708,6 +777,18 @@ export interface ApiNotification {
|
|
708
777
|
export interface ApiNotificationChannel {
|
709
778
|
channel_id?: string;
|
710
779
|
}
|
780
|
+
/** */
|
781
|
+
export interface ApiNotificationChannelCategorySetting {
|
782
|
+
action?: number;
|
783
|
+
channel_category_label?: string;
|
784
|
+
channel_category_title?: string;
|
785
|
+
id?: string;
|
786
|
+
notification_setting_type?: number;
|
787
|
+
}
|
788
|
+
/** */
|
789
|
+
export interface ApiNotificationChannelCategorySettingList {
|
790
|
+
notification_channel_category_settings_list?: Array<ApiNotificationChannelCategorySetting>;
|
791
|
+
}
|
711
792
|
/** A collection of zero or more notifications. */
|
712
793
|
export interface ApiNotificationList {
|
713
794
|
cacheable_cursor?: string;
|
@@ -726,6 +807,27 @@ export interface ApiNotificationUserChannel {
|
|
726
807
|
time_mute?: string;
|
727
808
|
}
|
728
809
|
/** */
|
810
|
+
export interface ApiOssrsHttpCallbackRequest {
|
811
|
+
action?: string;
|
812
|
+
app?: string;
|
813
|
+
client_id?: string;
|
814
|
+
ip?: string;
|
815
|
+
page_url?: string;
|
816
|
+
param?: string;
|
817
|
+
server_id?: string;
|
818
|
+
service_id?: string;
|
819
|
+
stream?: string;
|
820
|
+
stream_id?: string;
|
821
|
+
stream_url?: string;
|
822
|
+
tc_url?: string;
|
823
|
+
vhost?: string;
|
824
|
+
}
|
825
|
+
/** */
|
826
|
+
export interface ApiOssrsHttpCallbackResponse {
|
827
|
+
code?: number;
|
828
|
+
msg?: string;
|
829
|
+
}
|
830
|
+
/** */
|
729
831
|
export interface ApiPermission {
|
730
832
|
active?: number;
|
731
833
|
description?: string;
|
@@ -894,6 +996,10 @@ export interface ApiSortParam {
|
|
894
996
|
order?: string;
|
895
997
|
}
|
896
998
|
/** */
|
999
|
+
export interface ApiStickerListedResponse {
|
1000
|
+
stickers?: Array<ApiClanSticker>;
|
1001
|
+
}
|
1002
|
+
/** */
|
897
1003
|
export interface ApiStreamingChannelResponse {
|
898
1004
|
channel_id?: string;
|
899
1005
|
clan_id?: string;
|
@@ -1047,6 +1153,13 @@ export interface ApiWebhookGenerateResponse {
|
|
1047
1153
|
export interface ApiWebhookListResponse {
|
1048
1154
|
webhooks?: Array<ApiWebhook>;
|
1049
1155
|
}
|
1156
|
+
/** Represents an event to be passed through the server to registered event handlers. */
|
1157
|
+
export interface MezonapiEvent {
|
1158
|
+
external?: boolean;
|
1159
|
+
name?: string;
|
1160
|
+
properties?: Record<string, string>;
|
1161
|
+
timestamp?: string;
|
1162
|
+
}
|
1050
1163
|
/** */
|
1051
1164
|
export interface ProtobufAny {
|
1052
1165
|
type_url?: string;
|
@@ -1167,6 +1280,8 @@ export declare class MezonApi {
|
|
1167
1280
|
listChannelDescs(bearerToken: string, limit?: number, state?: number, cursor?: string, clanId?: string, channelType?: number, options?: any): Promise<ApiChannelDescList>;
|
1168
1281
|
/** Create a new channel with the current user as the owner. */
|
1169
1282
|
createChannelDesc(bearerToken: string, body: ApiCreateChannelDescRequest, options?: any): Promise<ApiChannelDescription>;
|
1283
|
+
/** list user add channel by channel ids */
|
1284
|
+
listUsersAddChannelByChannelId(bearerToken: string, channelId?: string, limit?: number, options?: any): Promise<ApiAllUsersAddChannelResponse>;
|
1170
1285
|
/** Delete a channel by ID. */
|
1171
1286
|
deleteChannelDesc(bearerToken: string, channelId: string, options?: any): Promise<any>;
|
1172
1287
|
/** Update fields in a given channel. */
|
@@ -1209,6 +1324,8 @@ export declare class MezonApi {
|
|
1209
1324
|
deleteClanEmojiById(bearerToken: string, id: string, clanId?: string, options?: any): Promise<any>;
|
1210
1325
|
/** Update ClanEmoj By id */
|
1211
1326
|
updateClanEmojiById(bearerToken: string, id: string, body: MezonUpdateClanEmojiByIdBody, options?: any): Promise<any>;
|
1327
|
+
/** get list emoji by user id */
|
1328
|
+
getListEmojisByUserId(bearerToken: string, options?: any): Promise<ApiEmojiListedResponse>;
|
1212
1329
|
/** Search message from elasticsearch service. */
|
1213
1330
|
searchMessage(bearerToken: string, body: ApiSearchMessageRequest, options?: any): Promise<ApiSearchMessageResponse>;
|
1214
1331
|
/** Submit an event for processing in the server's registered runtime custom events handler. */
|
@@ -1235,16 +1352,30 @@ export declare class MezonApi {
|
|
1235
1352
|
importFacebookFriends(bearerToken: string, account: ApiAccountFacebook, reset?: boolean, options?: any): Promise<any>;
|
1236
1353
|
/** Import Steam friends and add them to a user's account. */
|
1237
1354
|
importSteamFriends(bearerToken: string, account: ApiAccountSteam, reset?: boolean, options?: any): Promise<any>;
|
1355
|
+
/** List GetChannelCategoryNotiSettingsList */
|
1356
|
+
getChannelCategoryNotiSettingsList(bearerToken: string, clanId?: string, options?: any): Promise<ApiNotificationChannelCategorySettingList>;
|
1238
1357
|
/** */
|
1239
1358
|
getUserProfileOnClan(bearerToken: string, clanId: string, options?: any): Promise<ApiClanProfile>;
|
1359
|
+
/** List GetNotificationChannel */
|
1360
|
+
getNotificationCategory(bearerToken: string, categoryId?: string, options?: any): Promise<ApiNotificationUserChannel>;
|
1361
|
+
/** List GetNotificationChannel */
|
1362
|
+
getNotificationChannel(bearerToken: string, channelId?: string, options?: any): Promise<ApiNotificationUserChannel>;
|
1363
|
+
/** List GetNotificationClan */
|
1364
|
+
getNotificationClan(bearerToken: string, clanId?: string, options?: any): Promise<ApiNotificationSetting>;
|
1365
|
+
/** List GetNotificationReactMessage */
|
1366
|
+
getNotificationReactMessage(bearerToken: string, channelId?: string, options?: any): Promise<ApiNotifiReactMessage>;
|
1240
1367
|
/** Give a coffee */
|
1241
1368
|
giveMeACoffee(bearerToken: string, body: ApiGiveCoffeeEvent, options?: any): Promise<any>;
|
1369
|
+
/** List HashtagDMList */
|
1370
|
+
hashtagDMList(bearerToken: string, userId?: Array<string>, limit?: number, options?: any): Promise<ApiHashtagDmList>;
|
1242
1371
|
/** Add users to a channel. */
|
1243
1372
|
createLinkInviteUser(bearerToken: string, body: ApiLinkInviteUserRequest, options?: any): Promise<ApiLinkInviteUser>;
|
1244
1373
|
/** Add users to a channel. */
|
1245
1374
|
getLinkInvite(bearerToken: string, inviteId: string, options?: any): Promise<ApiInviteUserRes>;
|
1246
1375
|
/** Add users to a channel. */
|
1247
1376
|
inviteUser(bearerToken: string, inviteId: string, options?: any): Promise<ApiInviteUserRes>;
|
1377
|
+
/** List HashtagDMList */
|
1378
|
+
listChannelByUserId(bearerToken: string, options?: any): Promise<ApiChannelDescList>;
|
1248
1379
|
/** set mute notification user channel. */
|
1249
1380
|
setMuteNotificationCategory(bearerToken: string, body: ApiSetMuteNotificationRequest, options?: any): Promise<any>;
|
1250
1381
|
/** set mute notification user channel. */
|
@@ -1267,6 +1398,8 @@ export declare class MezonApi {
|
|
1267
1398
|
deleteNotiReactMessage(bearerToken: string, channelId?: string, options?: any): Promise<any>;
|
1268
1399
|
/** */
|
1269
1400
|
setNotificationReactMessage(bearerToken: string, body: ApiNotificationChannel, options?: any): Promise<any>;
|
1401
|
+
/** Ossrs http callback. */
|
1402
|
+
streamingServerCallback(bearerToken: string, body: ApiOssrsHttpCallbackRequest, options?: any): Promise<ApiOssrsHttpCallbackResponse>;
|
1270
1403
|
/** set permission role channel. */
|
1271
1404
|
setRoleChannelPermission(bearerToken: string, body: ApiUpdateRoleChannelRequest, options?: any): Promise<any>;
|
1272
1405
|
/** Get permission list */
|
@@ -1309,6 +1442,8 @@ export declare class MezonApi {
|
|
1309
1442
|
deleteClanStickerById(bearerToken: string, id: string, clanId?: string, options?: any): Promise<any>;
|
1310
1443
|
/** Update a sticker by ID */
|
1311
1444
|
updateClanStickerById(bearerToken: string, id: string, body: MezonUpdateClanStickerByIdBody, options?: any): Promise<any>;
|
1445
|
+
/** get list sticker by user id */
|
1446
|
+
getListStickersByUserId(bearerToken: string, options?: any): Promise<ApiStickerListedResponse>;
|
1312
1447
|
/** List streaming channels. */
|
1313
1448
|
listStreamingChannels(bearerToken: string, clanId?: string, options?: any): Promise<ApiListStreamingChannelsResponse>;
|
1314
1449
|
/** Register streaming in channel ( for bot - get streaming key) */
|
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, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiUpdateEventRequest, 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 } from "./api.gen";
|
16
|
+
import { ApiAccount, ApiAccountCustom, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiUpdateAccountRequest, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiUpdateEventRequest, 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 } from "./api.gen";
|
17
17
|
import { Session } from "./session";
|
18
18
|
import { Socket } from "./socket";
|
19
19
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
@@ -560,4 +560,14 @@ export declare class Client {
|
|
560
560
|
registerStreamingChannel(session: Session, request: ApiRegisterStreamingChannelRequest): Promise<boolean>;
|
561
561
|
/** List a channel's users. */
|
562
562
|
listChannelApps(session: Session, clanId: string): Promise<ApiListChannelAppsResponse>;
|
563
|
+
getChannelCategoryNotiSettingsList(session: Session, clanId: string): Promise<ApiNotificationChannelCategorySettingList>;
|
564
|
+
getNotificationCategory(session: Session, categoryId: string): Promise<ApiNotificationUserChannel>;
|
565
|
+
getNotificationChannel(session: Session, channelId: string): Promise<ApiNotificationUserChannel>;
|
566
|
+
getNotificationClan(session: Session, clanId: string): Promise<ApiNotificationSetting>;
|
567
|
+
getNotificationReactMessage(session: Session, channelId: string): Promise<ApiNotifiReactMessage>;
|
568
|
+
hashtagDMList(session: Session, userId: Array<string>, limit: number): Promise<ApiHashtagDmList>;
|
569
|
+
listChannelByUserId(session: Session): Promise<ApiChannelDescList>;
|
570
|
+
listUsersAddChannelByChannelId(session: Session, channel_id: string, limit: number): Promise<ApiAllUsersAddChannelResponse>;
|
571
|
+
getListEmojisByUserId(session: Session): Promise<ApiEmojiListedResponse>;
|
572
|
+
getListStickersByUserId(session: Session): Promise<ApiStickerListedResponse>;
|
563
573
|
}
|