mezon-js 2.13.70 → 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/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,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. */
@@ -2308,12 +2313,8 @@ export declare class MezonApi {
2308
2313
  getUserStatus(bearerToken: string, options?: any): Promise<ApiUserStatus>;
2309
2314
  /** Update user status */
2310
2315
  updateUserStatus(bearerToken: string, body: ApiUserStatusUpdate, options?: any): Promise<any>;
2311
- /** list transaction detail */
2312
- listTransactionDetail(bearerToken: string, transId: string, options?: any): Promise<ApiTransactionDetail>;
2313
2316
  /** Store wallet key */
2314
2317
  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
2318
  /** create webhook */
2318
2319
  generateWebhook(bearerToken: string, body: ApiWebhookCreateRequest, options?: any): Promise<any>;
2319
2320
  /** update webhook name by id */
@@ -2405,4 +2406,6 @@ export declare class MezonApi {
2405
2406
  isBanned(bearerToken: string, channelId: string, options?: any): Promise<ApiIsBannedResponse>;
2406
2407
  /** */
2407
2408
  reportMessageAbuse(bearerToken: string, messageId?: string, abuseType?: string, options?: any): Promise<any>;
2409
+ /** */
2410
+ listLogedDevice(bearerToken: string, options?: any): Promise<ApiLogedDeviceList>;
2408
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, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, 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, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, ApiTransactionDetail, 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 } from "./api.gen";
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
  }