mezon-js 2.13.69 → 2.13.71
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/api.ts +111 -0
- package/api.gen.ts +208 -274
- package/client.ts +19 -88
- package/dist/api/api.d.ts +34 -0
- package/dist/api.gen.d.ts +9 -8
- package/dist/client.d.ts +2 -6
- package/dist/mezon-js.cjs.js +11276 -467
- package/dist/mezon-js.esm.mjs +11276 -467
- package/package.json +1 -1
package/client.ts
CHANGED
|
@@ -91,7 +91,6 @@ import {
|
|
|
91
91
|
MezonUpdateSystemMessageBody,
|
|
92
92
|
ApiUpdateCategoryOrderRequest,
|
|
93
93
|
ApiGiveCoffeeEvent,
|
|
94
|
-
ApiListStreamingChannelsResponse,
|
|
95
94
|
ApiStreamingChannelUserList,
|
|
96
95
|
ApiRegisterStreamingChannelRequest,
|
|
97
96
|
ApiRegisterStreamingChannelResponse,
|
|
@@ -101,7 +100,6 @@ import {
|
|
|
101
100
|
ApiNotificationUserChannel,
|
|
102
101
|
ApiNotificationSetting,
|
|
103
102
|
ApiNotifiReactMessage,
|
|
104
|
-
ApiHashtagDmList,
|
|
105
103
|
ApiEmojiListedResponse,
|
|
106
104
|
ApiStickerListedResponse,
|
|
107
105
|
ApiAllUsersAddChannelResponse,
|
|
@@ -141,12 +139,10 @@ import {
|
|
|
141
139
|
ApiUserStatus,
|
|
142
140
|
ApiListOnboardingStepResponse,
|
|
143
141
|
MezonUpdateOnboardingStepByClanIdBody,
|
|
144
|
-
ApiWalletLedgerList,
|
|
145
142
|
ApiSdTopicList,
|
|
146
143
|
ApiSdTopicRequest,
|
|
147
144
|
ApiSdTopic,
|
|
148
145
|
MezonUpdateEventBody,
|
|
149
|
-
ApiTransactionDetail,
|
|
150
146
|
MezonapiCreateRoomChannelApps,
|
|
151
147
|
ApiGenerateMeetTokenRequest,
|
|
152
148
|
ApiGenerateMeetTokenResponse,
|
|
@@ -180,6 +176,7 @@ import {
|
|
|
180
176
|
ApiUpdateUsernameRequest,
|
|
181
177
|
ApiBannedUserList,
|
|
182
178
|
ApiIsBannedResponse,
|
|
179
|
+
ApiLogedDeviceList,
|
|
183
180
|
} from "./api.gen";
|
|
184
181
|
|
|
185
182
|
import { Session } from "./session";
|
|
@@ -1516,7 +1513,7 @@ export class Client {
|
|
|
1516
1513
|
lang_tag: gu.user!.lang_tag,
|
|
1517
1514
|
location: gu.user!.location,
|
|
1518
1515
|
online: gu.user!.online,
|
|
1519
|
-
is_mobile: gu.user?.is_mobile
|
|
1516
|
+
is_mobile: gu.user?.is_mobile,
|
|
1520
1517
|
timezone: gu.user!.timezone,
|
|
1521
1518
|
update_time: gu.user!.update_time,
|
|
1522
1519
|
username: gu.user!.username,
|
|
@@ -1938,7 +1935,7 @@ export class Client {
|
|
|
1938
1935
|
timezone: f.user!.timezone,
|
|
1939
1936
|
update_time: f.user!.update_time,
|
|
1940
1937
|
username: f.user!.username,
|
|
1941
|
-
is_mobile: f.user?.is_mobile
|
|
1938
|
+
is_mobile: f.user?.is_mobile,
|
|
1942
1939
|
user_status: f.user!.user_status,
|
|
1943
1940
|
status: f.user!.status,
|
|
1944
1941
|
mezon_id: f.user!.mezon_id,
|
|
@@ -3227,25 +3224,6 @@ export class Client {
|
|
|
3227
3224
|
});
|
|
3228
3225
|
}
|
|
3229
3226
|
|
|
3230
|
-
async listStreamingChannels(
|
|
3231
|
-
session: Session,
|
|
3232
|
-
clanId: string
|
|
3233
|
-
): Promise<ApiListStreamingChannelsResponse> {
|
|
3234
|
-
if (
|
|
3235
|
-
this.autoRefreshSession &&
|
|
3236
|
-
session.refresh_token &&
|
|
3237
|
-
session.isexpired(Date.now() / 1000)
|
|
3238
|
-
) {
|
|
3239
|
-
await this.sessionRefresh(session);
|
|
3240
|
-
}
|
|
3241
|
-
|
|
3242
|
-
return this.apiClient
|
|
3243
|
-
.listStreamingChannels(session.token, clanId)
|
|
3244
|
-
.then((response: ApiListStreamingChannelsResponse) => {
|
|
3245
|
-
return Promise.resolve(response);
|
|
3246
|
-
});
|
|
3247
|
-
}
|
|
3248
|
-
|
|
3249
3227
|
/** List a channel's users. */
|
|
3250
3228
|
async listStreamingChannelUsers(
|
|
3251
3229
|
session: Session,
|
|
@@ -3448,26 +3426,6 @@ export class Client {
|
|
|
3448
3426
|
});
|
|
3449
3427
|
}
|
|
3450
3428
|
|
|
3451
|
-
async hashtagDMList(
|
|
3452
|
-
session: Session,
|
|
3453
|
-
userId: Array<string>,
|
|
3454
|
-
limit: number
|
|
3455
|
-
): Promise<ApiHashtagDmList> {
|
|
3456
|
-
if (
|
|
3457
|
-
this.autoRefreshSession &&
|
|
3458
|
-
session.refresh_token &&
|
|
3459
|
-
session.isexpired(Date.now() / 1000)
|
|
3460
|
-
) {
|
|
3461
|
-
await this.sessionRefresh(session);
|
|
3462
|
-
}
|
|
3463
|
-
|
|
3464
|
-
return this.apiClient
|
|
3465
|
-
.hashtagDMList(session.token, userId, limit)
|
|
3466
|
-
.then((response: ApiHashtagDmList) => {
|
|
3467
|
-
return Promise.resolve(response);
|
|
3468
|
-
});
|
|
3469
|
-
}
|
|
3470
|
-
|
|
3471
3429
|
async listChannelByUserId(session: Session): Promise<ApiChannelDescList> {
|
|
3472
3430
|
if (
|
|
3473
3431
|
this.autoRefreshSession &&
|
|
@@ -4385,49 +4343,6 @@ export class Client {
|
|
|
4385
4343
|
});
|
|
4386
4344
|
}
|
|
4387
4345
|
|
|
4388
|
-
/** list transaction detail */
|
|
4389
|
-
async listTransactionDetail(
|
|
4390
|
-
session: Session,
|
|
4391
|
-
transId:string
|
|
4392
|
-
): Promise<ApiTransactionDetail> {
|
|
4393
|
-
if (
|
|
4394
|
-
this.autoRefreshSession &&
|
|
4395
|
-
session.refresh_token &&
|
|
4396
|
-
session.isexpired(Date.now() / 1000)
|
|
4397
|
-
) {
|
|
4398
|
-
await this.sessionRefresh(session);
|
|
4399
|
-
}
|
|
4400
|
-
|
|
4401
|
-
return this.apiClient
|
|
4402
|
-
.listTransactionDetail(session.token, transId)
|
|
4403
|
-
.then((response: ApiTransactionDetail) => {
|
|
4404
|
-
return Promise.resolve(response);
|
|
4405
|
-
});
|
|
4406
|
-
}
|
|
4407
|
-
|
|
4408
|
-
//**list wallet ledger */
|
|
4409
|
-
async listWalletLedger(
|
|
4410
|
-
session: Session,
|
|
4411
|
-
limit?: number,
|
|
4412
|
-
filter?: number,
|
|
4413
|
-
transactionId?: string,
|
|
4414
|
-
page?: number
|
|
4415
|
-
): Promise<ApiWalletLedgerList> {
|
|
4416
|
-
if (
|
|
4417
|
-
this.autoRefreshSession &&
|
|
4418
|
-
session.refresh_token &&
|
|
4419
|
-
session.isexpired(Date.now() / 1000)
|
|
4420
|
-
) {
|
|
4421
|
-
await this.sessionRefresh(session);
|
|
4422
|
-
}
|
|
4423
|
-
|
|
4424
|
-
return this.apiClient
|
|
4425
|
-
.listWalletLedger(session.token, limit, filter, transactionId, page)
|
|
4426
|
-
.then((response: ApiWalletLedgerList) => {
|
|
4427
|
-
return Promise.resolve(response);
|
|
4428
|
-
});
|
|
4429
|
-
}
|
|
4430
|
-
|
|
4431
4346
|
//**list sd topic */
|
|
4432
4347
|
async listSdTopic(
|
|
4433
4348
|
session: Session,
|
|
@@ -5014,4 +4929,20 @@ export class Client {
|
|
|
5014
4929
|
return response !== undefined;
|
|
5015
4930
|
});
|
|
5016
4931
|
}
|
|
4932
|
+
|
|
4933
|
+
async listLogedDevice(session: Session): Promise<ApiLogedDeviceList> {
|
|
4934
|
+
if (
|
|
4935
|
+
this.autoRefreshSession &&
|
|
4936
|
+
session.refresh_token &&
|
|
4937
|
+
session.isexpired(Date.now() / 1000)
|
|
4938
|
+
) {
|
|
4939
|
+
await this.sessionRefresh(session);
|
|
4940
|
+
}
|
|
4941
|
+
|
|
4942
|
+
return this.apiClient
|
|
4943
|
+
.listLogedDevice(session.token)
|
|
4944
|
+
.then((response: ApiLogedDeviceList) => {
|
|
4945
|
+
return Promise.resolve(response);
|
|
4946
|
+
});
|
|
4947
|
+
}
|
|
5017
4948
|
}
|
package/dist/api/api.d.ts
CHANGED
|
@@ -3106,6 +3106,12 @@ export interface ReportMessageAbuseReqest {
|
|
|
3106
3106
|
message_id: string;
|
|
3107
3107
|
abuse_type: string;
|
|
3108
3108
|
}
|
|
3109
|
+
export interface LogedDeviceList {
|
|
3110
|
+
device_name: string;
|
|
3111
|
+
loged_time: Date | undefined;
|
|
3112
|
+
status: number;
|
|
3113
|
+
platform: string;
|
|
3114
|
+
}
|
|
3109
3115
|
export declare const Account: {
|
|
3110
3116
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
3111
3117
|
decode(input: _m0.Reader | Uint8Array, length?: number): Account;
|
|
@@ -23746,6 +23752,34 @@ export declare const ReportMessageAbuseReqest: {
|
|
|
23746
23752
|
abuse_type?: string | undefined;
|
|
23747
23753
|
} & { [K_1 in Exclude<keyof I_1, keyof ReportMessageAbuseReqest>]: never; }>(object: I_1): ReportMessageAbuseReqest;
|
|
23748
23754
|
};
|
|
23755
|
+
export declare const LogedDeviceList: {
|
|
23756
|
+
encode(message: LogedDeviceList, writer?: _m0.Writer): _m0.Writer;
|
|
23757
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LogedDeviceList;
|
|
23758
|
+
fromJSON(object: any): LogedDeviceList;
|
|
23759
|
+
toJSON(message: LogedDeviceList): unknown;
|
|
23760
|
+
create<I extends {
|
|
23761
|
+
device_name?: string | undefined;
|
|
23762
|
+
loged_time?: Date | undefined;
|
|
23763
|
+
status?: number | undefined;
|
|
23764
|
+
platform?: string | undefined;
|
|
23765
|
+
} & {
|
|
23766
|
+
device_name?: string | undefined;
|
|
23767
|
+
loged_time?: Date | undefined;
|
|
23768
|
+
status?: number | undefined;
|
|
23769
|
+
platform?: string | undefined;
|
|
23770
|
+
} & { [K in Exclude<keyof I, keyof LogedDeviceList>]: never; }>(base?: I | undefined): LogedDeviceList;
|
|
23771
|
+
fromPartial<I_1 extends {
|
|
23772
|
+
device_name?: string | undefined;
|
|
23773
|
+
loged_time?: Date | undefined;
|
|
23774
|
+
status?: number | undefined;
|
|
23775
|
+
platform?: string | undefined;
|
|
23776
|
+
} & {
|
|
23777
|
+
device_name?: string | undefined;
|
|
23778
|
+
loged_time?: Date | undefined;
|
|
23779
|
+
status?: number | undefined;
|
|
23780
|
+
platform?: string | undefined;
|
|
23781
|
+
} & { [K_1 in Exclude<keyof I_1, keyof LogedDeviceList>]: never; }>(object: I_1): LogedDeviceList;
|
|
23782
|
+
};
|
|
23749
23783
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
23750
23784
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
23751
23785
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/dist/api.gen.d.ts
CHANGED
|
@@ -104,6 +104,13 @@ export interface MezonUpdateChannelDescBody {
|
|
|
104
104
|
topic?: string;
|
|
105
105
|
}
|
|
106
106
|
/** */
|
|
107
|
+
export interface ApiLogedDeviceList {
|
|
108
|
+
device_name?: string;
|
|
109
|
+
loged_time?: string;
|
|
110
|
+
platform?: string;
|
|
111
|
+
status?: number;
|
|
112
|
+
}
|
|
113
|
+
/** */
|
|
107
114
|
export interface MezonUpdateClanDescBody {
|
|
108
115
|
banner?: string;
|
|
109
116
|
clan_name?: string;
|
|
@@ -2172,8 +2179,6 @@ export declare class MezonApi {
|
|
|
2172
2179
|
giveMeACoffee(bearerToken: string, body: ApiGiveCoffeeEvent, options?: any): Promise<any>;
|
|
2173
2180
|
/** get key server */
|
|
2174
2181
|
getKeyServer(bearerToken: string, options?: any): Promise<ApiGetKeyServerResp>;
|
|
2175
|
-
/** List HashtagDMList */
|
|
2176
|
-
hashtagDMList(bearerToken: string, userId?: Array<string>, limit?: number, options?: any): Promise<ApiHashtagDmList>;
|
|
2177
2182
|
/** Add users to a channel. */
|
|
2178
2183
|
createLinkInviteUser(bearerToken: string, body: ApiLinkInviteUserRequest, options?: any): Promise<ApiLinkInviteUser>;
|
|
2179
2184
|
/** Add users to a channel. */
|
|
@@ -2268,8 +2273,6 @@ export declare class MezonApi {
|
|
|
2268
2273
|
updateClanStickerById(bearerToken: string, id: string, body: MezonUpdateClanStickerByIdBody, options?: any): Promise<any>;
|
|
2269
2274
|
/** get list sticker by user id */
|
|
2270
2275
|
getListStickersByUserId(bearerToken: string, options?: any): Promise<ApiStickerListedResponse>;
|
|
2271
|
-
/** List streaming channels. */
|
|
2272
|
-
listStreamingChannels(bearerToken: string, clanId?: string, options?: any): Promise<ApiListStreamingChannelsResponse>;
|
|
2273
2276
|
/** Register streaming in channel ( for bot - get streaming key) */
|
|
2274
2277
|
registerStreamingChannel(bearerToken: string, body: ApiRegisterStreamingChannelRequest, options?: any): Promise<ApiRegisterStreamingChannelResponse>;
|
|
2275
2278
|
/** List all users that are part of a channel. */
|
|
@@ -2310,12 +2313,8 @@ export declare class MezonApi {
|
|
|
2310
2313
|
getUserStatus(bearerToken: string, options?: any): Promise<ApiUserStatus>;
|
|
2311
2314
|
/** Update user status */
|
|
2312
2315
|
updateUserStatus(bearerToken: string, body: ApiUserStatusUpdate, options?: any): Promise<any>;
|
|
2313
|
-
/** list transaction detail */
|
|
2314
|
-
listTransactionDetail(bearerToken: string, transId: string, options?: any): Promise<ApiTransactionDetail>;
|
|
2315
2316
|
/** Store wallet key */
|
|
2316
2317
|
storeWalletKey(bearerToken: string, body: ApiStoreWalletKeyRequest, options?: any): Promise<any>;
|
|
2317
|
-
/** Get user status */
|
|
2318
|
-
listWalletLedger(bearerToken: string, limit?: number, filter?: number, transactionId?: string, page?: number, options?: any): Promise<ApiWalletLedgerList>;
|
|
2319
2318
|
/** create webhook */
|
|
2320
2319
|
generateWebhook(bearerToken: string, body: ApiWebhookCreateRequest, options?: any): Promise<any>;
|
|
2321
2320
|
/** update webhook name by id */
|
|
@@ -2407,4 +2406,6 @@ export declare class MezonApi {
|
|
|
2407
2406
|
isBanned(bearerToken: string, channelId: string, options?: any): Promise<ApiIsBannedResponse>;
|
|
2408
2407
|
/** */
|
|
2409
2408
|
reportMessageAbuse(bearerToken: string, messageId?: string, abuseType?: string, options?: any): Promise<any>;
|
|
2409
|
+
/** */
|
|
2410
|
+
listLogedDevice(bearerToken: string, options?: any): Promise<ApiLogedDeviceList>;
|
|
2410
2411
|
}
|
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, ApiAccountMezon, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteRequest, 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,
|
|
16
|
+
import { ApiAccount, ApiAccountMezon, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteRequest, 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, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, ApiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest, ApiListClanDiscover, ApiClanDiscoverRequest, ApiQuickMenuAccessList, ApiQuickMenuAccessRequest, ApiUnlockedItemRequest, ApiForSaleItemList, ApiUnlockedItemResponse, ApiIsFollowerResponse, ApiIsFollowerRequest, ApiTransferOwnershipRequest, ApiMeetParticipantRequest, ApiLinkAccountConfirmRequest, ApiLinkAccountMezon, ApiUser, ApiFriend, ApiListClanUnreadMsgIndicatorResponse, ApiAddFriendsResponse, ApiUpdateUsernameRequest, ApiBannedUserList, ApiIsBannedResponse, ApiLogedDeviceList } from "./api.gen";
|
|
17
17
|
import { Session } from "./session";
|
|
18
18
|
import { Socket } from "./socket";
|
|
19
19
|
import { WebSocketAdapter } from "./web_socket_adapter";
|
|
@@ -437,7 +437,6 @@ export declare class Client {
|
|
|
437
437
|
deleteCategoryOrder(session: Session, clanId: string): Promise<any>;
|
|
438
438
|
givecoffee(session: Session, request: ApiGiveCoffeeEvent): Promise<any>;
|
|
439
439
|
sendToken(session: Session, request: ApiTokenSentEvent): Promise<any>;
|
|
440
|
-
listStreamingChannels(session: Session, clanId: string): Promise<ApiListStreamingChannelsResponse>;
|
|
441
440
|
/** List a channel's users. */
|
|
442
441
|
listStreamingChannelUsers(session: Session, clanId: string, channelId: string, channelType: number, state?: number, limit?: number, cursor?: string): Promise<ApiStreamingChannelUserList>;
|
|
443
442
|
registerStreamingChannel(session: Session, request: ApiRegisterStreamingChannelRequest): Promise<boolean>;
|
|
@@ -448,7 +447,6 @@ export declare class Client {
|
|
|
448
447
|
getNotificationChannel(session: Session, channelId: string): Promise<ApiNotificationUserChannel>;
|
|
449
448
|
getNotificationClan(session: Session, clanId: string): Promise<ApiNotificationSetting>;
|
|
450
449
|
getNotificationReactMessage(session: Session, channelId: string): Promise<ApiNotifiReactMessage>;
|
|
451
|
-
hashtagDMList(session: Session, userId: Array<string>, limit: number): Promise<ApiHashtagDmList>;
|
|
452
450
|
listChannelByUserId(session: Session): Promise<ApiChannelDescList>;
|
|
453
451
|
listChannelUsersUC(session: Session, channel_id: string, limit: number): Promise<ApiAllUsersAddChannelResponse>;
|
|
454
452
|
getListEmojisByUserId(session: Session): Promise<ApiEmojiListedResponse>;
|
|
@@ -495,9 +493,6 @@ export declare class Client {
|
|
|
495
493
|
updateOnboardingStepByClanId(session: Session, clan_id: string, request: MezonUpdateOnboardingStepByClanIdBody): Promise<boolean>;
|
|
496
494
|
updateUserStatus(session: Session, request: ApiUserStatusUpdate): Promise<boolean>;
|
|
497
495
|
getUserStatus(session: Session): Promise<ApiUserStatus>;
|
|
498
|
-
/** list transaction detail */
|
|
499
|
-
listTransactionDetail(session: Session, transId: string): Promise<ApiTransactionDetail>;
|
|
500
|
-
listWalletLedger(session: Session, limit?: number, filter?: number, transactionId?: string, page?: number): Promise<ApiWalletLedgerList>;
|
|
501
496
|
listSdTopic(session: Session, clanId?: string, limit?: number): Promise<ApiSdTopicList>;
|
|
502
497
|
createSdTopic(session: Session, request: ApiSdTopicRequest): Promise<ApiSdTopic>;
|
|
503
498
|
getTopicDetail(session: Session, topicId?: string): Promise<ApiSdTopic>;
|
|
@@ -534,4 +529,5 @@ export declare class Client {
|
|
|
534
529
|
transferOwnership(session: Session, req: ApiTransferOwnershipRequest): Promise<any>;
|
|
535
530
|
isBanned(session: Session, channelId: string): Promise<ApiIsBannedResponse>;
|
|
536
531
|
reportMessageAbuse(session: Session, messageId?: string, abuseType?: string): Promise<any>;
|
|
532
|
+
listLogedDevice(session: Session): Promise<ApiLogedDeviceList>;
|
|
537
533
|
}
|