mezon-js 2.13.70 → 2.13.72
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 +230 -0
- package/api.gen.ts +186 -203
- package/client.ts +17 -66
- package/dist/api/api.d.ts +148 -0
- package/dist/api.gen.d.ts +16 -6
- package/dist/client.d.ts +2 -5
- package/dist/mezon-js.cjs.js +7481 -3721
- package/dist/mezon-js.esm.mjs +7481 -3721
- package/package.json +1 -1
package/client.ts
CHANGED
|
@@ -100,7 +100,6 @@ import {
|
|
|
100
100
|
ApiNotificationUserChannel,
|
|
101
101
|
ApiNotificationSetting,
|
|
102
102
|
ApiNotifiReactMessage,
|
|
103
|
-
ApiHashtagDmList,
|
|
104
103
|
ApiEmojiListedResponse,
|
|
105
104
|
ApiStickerListedResponse,
|
|
106
105
|
ApiAllUsersAddChannelResponse,
|
|
@@ -140,12 +139,10 @@ import {
|
|
|
140
139
|
ApiUserStatus,
|
|
141
140
|
ApiListOnboardingStepResponse,
|
|
142
141
|
MezonUpdateOnboardingStepByClanIdBody,
|
|
143
|
-
ApiWalletLedgerList,
|
|
144
142
|
ApiSdTopicList,
|
|
145
143
|
ApiSdTopicRequest,
|
|
146
144
|
ApiSdTopic,
|
|
147
145
|
MezonUpdateEventBody,
|
|
148
|
-
ApiTransactionDetail,
|
|
149
146
|
MezonapiCreateRoomChannelApps,
|
|
150
147
|
ApiGenerateMeetTokenRequest,
|
|
151
148
|
ApiGenerateMeetTokenResponse,
|
|
@@ -179,6 +176,7 @@ import {
|
|
|
179
176
|
ApiUpdateUsernameRequest,
|
|
180
177
|
ApiBannedUserList,
|
|
181
178
|
ApiIsBannedResponse,
|
|
179
|
+
ApiLogedDeviceList,
|
|
182
180
|
} from "./api.gen";
|
|
183
181
|
|
|
184
182
|
import { Session } from "./session";
|
|
@@ -3428,26 +3426,6 @@ export class Client {
|
|
|
3428
3426
|
});
|
|
3429
3427
|
}
|
|
3430
3428
|
|
|
3431
|
-
async hashtagDMList(
|
|
3432
|
-
session: Session,
|
|
3433
|
-
userId: Array<string>,
|
|
3434
|
-
limit: number
|
|
3435
|
-
): Promise<ApiHashtagDmList> {
|
|
3436
|
-
if (
|
|
3437
|
-
this.autoRefreshSession &&
|
|
3438
|
-
session.refresh_token &&
|
|
3439
|
-
session.isexpired(Date.now() / 1000)
|
|
3440
|
-
) {
|
|
3441
|
-
await this.sessionRefresh(session);
|
|
3442
|
-
}
|
|
3443
|
-
|
|
3444
|
-
return this.apiClient
|
|
3445
|
-
.hashtagDMList(session.token, userId, limit)
|
|
3446
|
-
.then((response: ApiHashtagDmList) => {
|
|
3447
|
-
return Promise.resolve(response);
|
|
3448
|
-
});
|
|
3449
|
-
}
|
|
3450
|
-
|
|
3451
3429
|
async listChannelByUserId(session: Session): Promise<ApiChannelDescList> {
|
|
3452
3430
|
if (
|
|
3453
3431
|
this.autoRefreshSession &&
|
|
@@ -4365,49 +4343,6 @@ export class Client {
|
|
|
4365
4343
|
});
|
|
4366
4344
|
}
|
|
4367
4345
|
|
|
4368
|
-
/** list transaction detail */
|
|
4369
|
-
async listTransactionDetail(
|
|
4370
|
-
session: Session,
|
|
4371
|
-
transId:string
|
|
4372
|
-
): Promise<ApiTransactionDetail> {
|
|
4373
|
-
if (
|
|
4374
|
-
this.autoRefreshSession &&
|
|
4375
|
-
session.refresh_token &&
|
|
4376
|
-
session.isexpired(Date.now() / 1000)
|
|
4377
|
-
) {
|
|
4378
|
-
await this.sessionRefresh(session);
|
|
4379
|
-
}
|
|
4380
|
-
|
|
4381
|
-
return this.apiClient
|
|
4382
|
-
.listTransactionDetail(session.token, transId)
|
|
4383
|
-
.then((response: ApiTransactionDetail) => {
|
|
4384
|
-
return Promise.resolve(response);
|
|
4385
|
-
});
|
|
4386
|
-
}
|
|
4387
|
-
|
|
4388
|
-
//**list wallet ledger */
|
|
4389
|
-
async listWalletLedger(
|
|
4390
|
-
session: Session,
|
|
4391
|
-
limit?: number,
|
|
4392
|
-
filter?: number,
|
|
4393
|
-
transactionId?: string,
|
|
4394
|
-
page?: number
|
|
4395
|
-
): Promise<ApiWalletLedgerList> {
|
|
4396
|
-
if (
|
|
4397
|
-
this.autoRefreshSession &&
|
|
4398
|
-
session.refresh_token &&
|
|
4399
|
-
session.isexpired(Date.now() / 1000)
|
|
4400
|
-
) {
|
|
4401
|
-
await this.sessionRefresh(session);
|
|
4402
|
-
}
|
|
4403
|
-
|
|
4404
|
-
return this.apiClient
|
|
4405
|
-
.listWalletLedger(session.token, limit, filter, transactionId, page)
|
|
4406
|
-
.then((response: ApiWalletLedgerList) => {
|
|
4407
|
-
return Promise.resolve(response);
|
|
4408
|
-
});
|
|
4409
|
-
}
|
|
4410
|
-
|
|
4411
4346
|
//**list sd topic */
|
|
4412
4347
|
async listSdTopic(
|
|
4413
4348
|
session: Session,
|
|
@@ -4994,4 +4929,20 @@ export class Client {
|
|
|
4994
4929
|
return response !== undefined;
|
|
4995
4930
|
});
|
|
4996
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
|
+
}
|
|
4997
4948
|
}
|
package/dist/api/api.d.ts
CHANGED
|
@@ -3106,6 +3106,18 @@ export interface ReportMessageAbuseReqest {
|
|
|
3106
3106
|
message_id: string;
|
|
3107
3107
|
abuse_type: string;
|
|
3108
3108
|
}
|
|
3109
|
+
export interface LogedDeviceList {
|
|
3110
|
+
devices: LogedDevice[];
|
|
3111
|
+
}
|
|
3112
|
+
export interface LogedDevice {
|
|
3113
|
+
device_id: string;
|
|
3114
|
+
device_name: string;
|
|
3115
|
+
login_at: Date | undefined;
|
|
3116
|
+
status: number;
|
|
3117
|
+
platform: string;
|
|
3118
|
+
ip: string;
|
|
3119
|
+
last_active: Date | undefined;
|
|
3120
|
+
}
|
|
3109
3121
|
export declare const Account: {
|
|
3110
3122
|
encode(message: Account, writer?: _m0.Writer): _m0.Writer;
|
|
3111
3123
|
decode(input: _m0.Reader | Uint8Array, length?: number): Account;
|
|
@@ -23746,6 +23758,142 @@ export declare const ReportMessageAbuseReqest: {
|
|
|
23746
23758
|
abuse_type?: string | undefined;
|
|
23747
23759
|
} & { [K_1 in Exclude<keyof I_1, keyof ReportMessageAbuseReqest>]: never; }>(object: I_1): ReportMessageAbuseReqest;
|
|
23748
23760
|
};
|
|
23761
|
+
export declare const LogedDeviceList: {
|
|
23762
|
+
encode(message: LogedDeviceList, writer?: _m0.Writer): _m0.Writer;
|
|
23763
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LogedDeviceList;
|
|
23764
|
+
fromJSON(object: any): LogedDeviceList;
|
|
23765
|
+
toJSON(message: LogedDeviceList): unknown;
|
|
23766
|
+
create<I extends {
|
|
23767
|
+
devices?: {
|
|
23768
|
+
device_id?: string | undefined;
|
|
23769
|
+
device_name?: string | undefined;
|
|
23770
|
+
login_at?: Date | undefined;
|
|
23771
|
+
status?: number | undefined;
|
|
23772
|
+
platform?: string | undefined;
|
|
23773
|
+
ip?: string | undefined;
|
|
23774
|
+
last_active?: Date | undefined;
|
|
23775
|
+
}[] | undefined;
|
|
23776
|
+
} & {
|
|
23777
|
+
devices?: ({
|
|
23778
|
+
device_id?: string | undefined;
|
|
23779
|
+
device_name?: string | undefined;
|
|
23780
|
+
login_at?: Date | undefined;
|
|
23781
|
+
status?: number | undefined;
|
|
23782
|
+
platform?: string | undefined;
|
|
23783
|
+
ip?: string | undefined;
|
|
23784
|
+
last_active?: Date | undefined;
|
|
23785
|
+
}[] & ({
|
|
23786
|
+
device_id?: string | undefined;
|
|
23787
|
+
device_name?: string | undefined;
|
|
23788
|
+
login_at?: Date | undefined;
|
|
23789
|
+
status?: number | undefined;
|
|
23790
|
+
platform?: string | undefined;
|
|
23791
|
+
ip?: string | undefined;
|
|
23792
|
+
last_active?: Date | undefined;
|
|
23793
|
+
} & {
|
|
23794
|
+
device_id?: string | undefined;
|
|
23795
|
+
device_name?: string | undefined;
|
|
23796
|
+
login_at?: Date | undefined;
|
|
23797
|
+
status?: number | undefined;
|
|
23798
|
+
platform?: string | undefined;
|
|
23799
|
+
ip?: string | undefined;
|
|
23800
|
+
last_active?: Date | undefined;
|
|
23801
|
+
} & { [K in Exclude<keyof I["devices"][number], keyof LogedDevice>]: never; })[] & { [K_1 in Exclude<keyof I["devices"], keyof {
|
|
23802
|
+
device_id?: string | undefined;
|
|
23803
|
+
device_name?: string | undefined;
|
|
23804
|
+
login_at?: Date | undefined;
|
|
23805
|
+
status?: number | undefined;
|
|
23806
|
+
platform?: string | undefined;
|
|
23807
|
+
ip?: string | undefined;
|
|
23808
|
+
last_active?: Date | undefined;
|
|
23809
|
+
}[]>]: never; }) | undefined;
|
|
23810
|
+
} & { [K_2 in Exclude<keyof I, "devices">]: never; }>(base?: I | undefined): LogedDeviceList;
|
|
23811
|
+
fromPartial<I_1 extends {
|
|
23812
|
+
devices?: {
|
|
23813
|
+
device_id?: string | undefined;
|
|
23814
|
+
device_name?: string | undefined;
|
|
23815
|
+
login_at?: Date | undefined;
|
|
23816
|
+
status?: number | undefined;
|
|
23817
|
+
platform?: string | undefined;
|
|
23818
|
+
ip?: string | undefined;
|
|
23819
|
+
last_active?: Date | undefined;
|
|
23820
|
+
}[] | undefined;
|
|
23821
|
+
} & {
|
|
23822
|
+
devices?: ({
|
|
23823
|
+
device_id?: string | undefined;
|
|
23824
|
+
device_name?: string | undefined;
|
|
23825
|
+
login_at?: Date | undefined;
|
|
23826
|
+
status?: number | undefined;
|
|
23827
|
+
platform?: string | undefined;
|
|
23828
|
+
ip?: string | undefined;
|
|
23829
|
+
last_active?: Date | undefined;
|
|
23830
|
+
}[] & ({
|
|
23831
|
+
device_id?: string | undefined;
|
|
23832
|
+
device_name?: string | undefined;
|
|
23833
|
+
login_at?: Date | undefined;
|
|
23834
|
+
status?: number | undefined;
|
|
23835
|
+
platform?: string | undefined;
|
|
23836
|
+
ip?: string | undefined;
|
|
23837
|
+
last_active?: Date | undefined;
|
|
23838
|
+
} & {
|
|
23839
|
+
device_id?: string | undefined;
|
|
23840
|
+
device_name?: string | undefined;
|
|
23841
|
+
login_at?: Date | undefined;
|
|
23842
|
+
status?: number | undefined;
|
|
23843
|
+
platform?: string | undefined;
|
|
23844
|
+
ip?: string | undefined;
|
|
23845
|
+
last_active?: Date | undefined;
|
|
23846
|
+
} & { [K_3 in Exclude<keyof I_1["devices"][number], keyof LogedDevice>]: never; })[] & { [K_4 in Exclude<keyof I_1["devices"], keyof {
|
|
23847
|
+
device_id?: string | undefined;
|
|
23848
|
+
device_name?: string | undefined;
|
|
23849
|
+
login_at?: Date | undefined;
|
|
23850
|
+
status?: number | undefined;
|
|
23851
|
+
platform?: string | undefined;
|
|
23852
|
+
ip?: string | undefined;
|
|
23853
|
+
last_active?: Date | undefined;
|
|
23854
|
+
}[]>]: never; }) | undefined;
|
|
23855
|
+
} & { [K_5 in Exclude<keyof I_1, "devices">]: never; }>(object: I_1): LogedDeviceList;
|
|
23856
|
+
};
|
|
23857
|
+
export declare const LogedDevice: {
|
|
23858
|
+
encode(message: LogedDevice, writer?: _m0.Writer): _m0.Writer;
|
|
23859
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LogedDevice;
|
|
23860
|
+
fromJSON(object: any): LogedDevice;
|
|
23861
|
+
toJSON(message: LogedDevice): unknown;
|
|
23862
|
+
create<I extends {
|
|
23863
|
+
device_id?: string | undefined;
|
|
23864
|
+
device_name?: string | undefined;
|
|
23865
|
+
login_at?: Date | undefined;
|
|
23866
|
+
status?: number | undefined;
|
|
23867
|
+
platform?: string | undefined;
|
|
23868
|
+
ip?: string | undefined;
|
|
23869
|
+
last_active?: Date | undefined;
|
|
23870
|
+
} & {
|
|
23871
|
+
device_id?: string | undefined;
|
|
23872
|
+
device_name?: string | undefined;
|
|
23873
|
+
login_at?: Date | undefined;
|
|
23874
|
+
status?: number | undefined;
|
|
23875
|
+
platform?: string | undefined;
|
|
23876
|
+
ip?: string | undefined;
|
|
23877
|
+
last_active?: Date | undefined;
|
|
23878
|
+
} & { [K in Exclude<keyof I, keyof LogedDevice>]: never; }>(base?: I | undefined): LogedDevice;
|
|
23879
|
+
fromPartial<I_1 extends {
|
|
23880
|
+
device_id?: string | undefined;
|
|
23881
|
+
device_name?: string | undefined;
|
|
23882
|
+
login_at?: Date | undefined;
|
|
23883
|
+
status?: number | undefined;
|
|
23884
|
+
platform?: string | undefined;
|
|
23885
|
+
ip?: string | undefined;
|
|
23886
|
+
last_active?: Date | undefined;
|
|
23887
|
+
} & {
|
|
23888
|
+
device_id?: string | undefined;
|
|
23889
|
+
device_name?: string | undefined;
|
|
23890
|
+
login_at?: Date | undefined;
|
|
23891
|
+
status?: number | undefined;
|
|
23892
|
+
platform?: string | undefined;
|
|
23893
|
+
ip?: string | undefined;
|
|
23894
|
+
last_active?: Date | undefined;
|
|
23895
|
+
} & { [K_1 in Exclude<keyof I_1, keyof LogedDevice>]: never; }>(object: I_1): LogedDevice;
|
|
23896
|
+
};
|
|
23749
23897
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
23750
23898
|
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
23899
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/dist/api.gen.d.ts
CHANGED
|
@@ -104,6 +104,20 @@ export interface MezonUpdateChannelDescBody {
|
|
|
104
104
|
topic?: string;
|
|
105
105
|
}
|
|
106
106
|
/** */
|
|
107
|
+
export interface ApiLogedDevice {
|
|
108
|
+
device_id?: string;
|
|
109
|
+
device_name?: string;
|
|
110
|
+
ip?: string;
|
|
111
|
+
last_active?: string;
|
|
112
|
+
login_at?: string;
|
|
113
|
+
platform?: string;
|
|
114
|
+
status?: number;
|
|
115
|
+
}
|
|
116
|
+
/** */
|
|
117
|
+
export interface ApiLogedDeviceList {
|
|
118
|
+
devices?: Array<ApiLogedDevice>;
|
|
119
|
+
}
|
|
120
|
+
/** */
|
|
107
121
|
export interface MezonUpdateClanDescBody {
|
|
108
122
|
banner?: string;
|
|
109
123
|
clan_name?: string;
|
|
@@ -2172,8 +2186,6 @@ export declare class MezonApi {
|
|
|
2172
2186
|
giveMeACoffee(bearerToken: string, body: ApiGiveCoffeeEvent, options?: any): Promise<any>;
|
|
2173
2187
|
/** get key server */
|
|
2174
2188
|
getKeyServer(bearerToken: string, options?: any): Promise<ApiGetKeyServerResp>;
|
|
2175
|
-
/** List HashtagDMList */
|
|
2176
|
-
hashtagDMList(bearerToken: string, userId?: Array<string>, limit?: number, options?: any): Promise<ApiHashtagDmList>;
|
|
2177
2189
|
/** Add users to a channel. */
|
|
2178
2190
|
createLinkInviteUser(bearerToken: string, body: ApiLinkInviteUserRequest, options?: any): Promise<ApiLinkInviteUser>;
|
|
2179
2191
|
/** Add users to a channel. */
|
|
@@ -2308,12 +2320,8 @@ export declare class MezonApi {
|
|
|
2308
2320
|
getUserStatus(bearerToken: string, options?: any): Promise<ApiUserStatus>;
|
|
2309
2321
|
/** Update user status */
|
|
2310
2322
|
updateUserStatus(bearerToken: string, body: ApiUserStatusUpdate, options?: any): Promise<any>;
|
|
2311
|
-
/** list transaction detail */
|
|
2312
|
-
listTransactionDetail(bearerToken: string, transId: string, options?: any): Promise<ApiTransactionDetail>;
|
|
2313
2323
|
/** Store wallet key */
|
|
2314
2324
|
storeWalletKey(bearerToken: string, body: ApiStoreWalletKeyRequest, options?: any): Promise<any>;
|
|
2315
|
-
/** Get user status */
|
|
2316
|
-
listWalletLedger(bearerToken: string, limit?: number, filter?: number, transactionId?: string, page?: number, options?: any): Promise<ApiWalletLedgerList>;
|
|
2317
2325
|
/** create webhook */
|
|
2318
2326
|
generateWebhook(bearerToken: string, body: ApiWebhookCreateRequest, options?: any): Promise<any>;
|
|
2319
2327
|
/** update webhook name by id */
|
|
@@ -2405,4 +2413,6 @@ export declare class MezonApi {
|
|
|
2405
2413
|
isBanned(bearerToken: string, channelId: string, options?: any): Promise<ApiIsBannedResponse>;
|
|
2406
2414
|
/** */
|
|
2407
2415
|
reportMessageAbuse(bearerToken: string, messageId?: string, abuseType?: string, options?: any): Promise<any>;
|
|
2416
|
+
/** */
|
|
2417
|
+
listLogedDevice(bearerToken: string, options?: any): Promise<ApiLogedDeviceList>;
|
|
2408
2418
|
}
|
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, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage,
|
|
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";
|
|
@@ -447,7 +447,6 @@ export declare class Client {
|
|
|
447
447
|
getNotificationChannel(session: Session, channelId: string): Promise<ApiNotificationUserChannel>;
|
|
448
448
|
getNotificationClan(session: Session, clanId: string): Promise<ApiNotificationSetting>;
|
|
449
449
|
getNotificationReactMessage(session: Session, channelId: string): Promise<ApiNotifiReactMessage>;
|
|
450
|
-
hashtagDMList(session: Session, userId: Array<string>, limit: number): Promise<ApiHashtagDmList>;
|
|
451
450
|
listChannelByUserId(session: Session): Promise<ApiChannelDescList>;
|
|
452
451
|
listChannelUsersUC(session: Session, channel_id: string, limit: number): Promise<ApiAllUsersAddChannelResponse>;
|
|
453
452
|
getListEmojisByUserId(session: Session): Promise<ApiEmojiListedResponse>;
|
|
@@ -494,9 +493,6 @@ export declare class Client {
|
|
|
494
493
|
updateOnboardingStepByClanId(session: Session, clan_id: string, request: MezonUpdateOnboardingStepByClanIdBody): Promise<boolean>;
|
|
495
494
|
updateUserStatus(session: Session, request: ApiUserStatusUpdate): Promise<boolean>;
|
|
496
495
|
getUserStatus(session: Session): Promise<ApiUserStatus>;
|
|
497
|
-
/** list transaction detail */
|
|
498
|
-
listTransactionDetail(session: Session, transId: string): Promise<ApiTransactionDetail>;
|
|
499
|
-
listWalletLedger(session: Session, limit?: number, filter?: number, transactionId?: string, page?: number): Promise<ApiWalletLedgerList>;
|
|
500
496
|
listSdTopic(session: Session, clanId?: string, limit?: number): Promise<ApiSdTopicList>;
|
|
501
497
|
createSdTopic(session: Session, request: ApiSdTopicRequest): Promise<ApiSdTopic>;
|
|
502
498
|
getTopicDetail(session: Session, topicId?: string): Promise<ApiSdTopic>;
|
|
@@ -533,4 +529,5 @@ export declare class Client {
|
|
|
533
529
|
transferOwnership(session: Session, req: ApiTransferOwnershipRequest): Promise<any>;
|
|
534
530
|
isBanned(session: Session, channelId: string): Promise<ApiIsBannedResponse>;
|
|
535
531
|
reportMessageAbuse(session: Session, messageId?: string, abuseType?: string): Promise<any>;
|
|
532
|
+
listLogedDevice(session: Session): Promise<ApiLogedDeviceList>;
|
|
536
533
|
}
|