mezon-js 2.10.19 → 2.10.20

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 CHANGED
@@ -4919,6 +4919,7 @@ export class MezonApi {
4919
4919
  messageId?: string,
4920
4920
  direction?: number,
4921
4921
  limit?: number,
4922
+ topicId?:string,
4922
4923
  options: any = {}
4923
4924
  ): Promise<ApiChannelMessageList> {
4924
4925
  if (channelId === null || channelId === undefined) {
@@ -4935,6 +4936,7 @@ export class MezonApi {
4935
4936
  queryParams.set("message_id", messageId);
4936
4937
  queryParams.set("limit", limit);
4937
4938
  queryParams.set("direction", direction);
4939
+ queryParams.set("topic_id", topicId);
4938
4940
 
4939
4941
  let bodyJson: string = "";
4940
4942
 
package/client.ts CHANGED
@@ -1408,7 +1408,8 @@ export class Client {
1408
1408
  channelId: string,
1409
1409
  messageId?: string,
1410
1410
  direction?: number,
1411
- limit?: number
1411
+ limit?: number,
1412
+ topicId?:string
1412
1413
  ): Promise<ChannelMessageList> {
1413
1414
  if (
1414
1415
  this.autoRefreshSession &&
@@ -1425,7 +1426,8 @@ export class Client {
1425
1426
  channelId,
1426
1427
  messageId,
1427
1428
  direction,
1428
- limit
1429
+ limit,
1430
+ topicId
1429
1431
  )
1430
1432
  .then((response: ApiChannelMessageList) => {
1431
1433
  var result: ChannelMessageList = {
package/dist/api.gen.d.ts CHANGED
@@ -1712,7 +1712,7 @@ export declare class MezonApi {
1712
1712
  /** */
1713
1713
  getListFavoriteChannel(bearerToken: string, clanId: string, options?: any): Promise<ApiListFavoriteChannelResponse>;
1714
1714
  /** List a channel's message history. */
1715
- listChannelMessages(bearerToken: string, clanId: string, channelId: string, messageId?: string, direction?: number, limit?: number, options?: any): Promise<ApiChannelMessageList>;
1715
+ listChannelMessages(bearerToken: string, clanId: string, channelId: string, messageId?: string, direction?: number, limit?: number, topicId?: string, options?: any): Promise<ApiChannelMessageList>;
1716
1716
  /** Add users to a channel. */
1717
1717
  addChannelUsers(bearerToken: string, channelId: string, userIds?: Array<string>, options?: any): Promise<any>;
1718
1718
  /** List all attachment that are part of a channel. */
package/dist/client.d.ts CHANGED
@@ -418,7 +418,7 @@ export declare class Client {
418
418
  /** Kick users from a channel, or decline their join requests. */
419
419
  removeChannelUsers(session: Session, channelId: string, ids?: Array<string>): Promise<boolean>;
420
420
  /** List a channel's message history. */
421
- listChannelMessages(session: Session, clanId: string, channelId: string, messageId?: string, direction?: number, limit?: number): Promise<ChannelMessageList>;
421
+ listChannelMessages(session: Session, clanId: string, channelId: string, messageId?: string, direction?: number, limit?: number, topicId?: string): Promise<ChannelMessageList>;
422
422
  /** List a channel's users. */
423
423
  listChannelVoiceUsers(session: Session, clanId: string, channelId: string, channelType: number, state?: number, limit?: number, cursor?: string): Promise<ApiVoiceChannelUserList>;
424
424
  /** List a channel's users. */
@@ -2419,7 +2419,7 @@ var MezonApi = class {
2419
2419
  ]);
2420
2420
  }
2421
2421
  /** List a channel's message history. */
2422
- listChannelMessages(bearerToken, clanId, channelId, messageId, direction, limit, options = {}) {
2422
+ listChannelMessages(bearerToken, clanId, channelId, messageId, direction, limit, topicId, options = {}) {
2423
2423
  if (channelId === null || channelId === void 0) {
2424
2424
  throw new Error(
2425
2425
  "'channelId' is a required parameter but is null or undefined."
@@ -2434,6 +2434,7 @@ var MezonApi = class {
2434
2434
  queryParams.set("message_id", messageId);
2435
2435
  queryParams.set("limit", limit);
2436
2436
  queryParams.set("direction", direction);
2437
+ queryParams.set("topic_id", topicId);
2437
2438
  let bodyJson = "";
2438
2439
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
2439
2440
  const fetchOptions = buildFetchOptions("GET", options, bodyJson);
@@ -8569,7 +8570,7 @@ var Client = class {
8569
8570
  });
8570
8571
  }
8571
8572
  /** List a channel's message history. */
8572
- listChannelMessages(session, clanId, channelId, messageId, direction, limit) {
8573
+ listChannelMessages(session, clanId, channelId, messageId, direction, limit, topicId) {
8573
8574
  return __async(this, null, function* () {
8574
8575
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
8575
8576
  yield this.sessionRefresh(session);
@@ -8580,7 +8581,8 @@ var Client = class {
8580
8581
  channelId,
8581
8582
  messageId,
8582
8583
  direction,
8583
- limit
8584
+ limit,
8585
+ topicId
8584
8586
  ).then((response) => {
8585
8587
  var result = {
8586
8588
  messages: [],
@@ -2385,7 +2385,7 @@ var MezonApi = class {
2385
2385
  ]);
2386
2386
  }
2387
2387
  /** List a channel's message history. */
2388
- listChannelMessages(bearerToken, clanId, channelId, messageId, direction, limit, options = {}) {
2388
+ listChannelMessages(bearerToken, clanId, channelId, messageId, direction, limit, topicId, options = {}) {
2389
2389
  if (channelId === null || channelId === void 0) {
2390
2390
  throw new Error(
2391
2391
  "'channelId' is a required parameter but is null or undefined."
@@ -2400,6 +2400,7 @@ var MezonApi = class {
2400
2400
  queryParams.set("message_id", messageId);
2401
2401
  queryParams.set("limit", limit);
2402
2402
  queryParams.set("direction", direction);
2403
+ queryParams.set("topic_id", topicId);
2403
2404
  let bodyJson = "";
2404
2405
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
2405
2406
  const fetchOptions = buildFetchOptions("GET", options, bodyJson);
@@ -8535,7 +8536,7 @@ var Client = class {
8535
8536
  });
8536
8537
  }
8537
8538
  /** List a channel's message history. */
8538
- listChannelMessages(session, clanId, channelId, messageId, direction, limit) {
8539
+ listChannelMessages(session, clanId, channelId, messageId, direction, limit, topicId) {
8539
8540
  return __async(this, null, function* () {
8540
8541
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
8541
8542
  yield this.sessionRefresh(session);
@@ -8546,7 +8547,8 @@ var Client = class {
8546
8547
  channelId,
8547
8548
  messageId,
8548
8549
  direction,
8549
- limit
8550
+ limit,
8551
+ topicId
8550
8552
  ).then((response) => {
8551
8553
  var result = {
8552
8554
  messages: [],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.19",
4
+ "version": "2.10.20",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"