mezon-js 2.10.43 → 2.10.45

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
@@ -262,6 +262,8 @@ export interface MezonUpdateSystemMessageBody {
262
262
  boost_message?: string;
263
263
  //
264
264
  channel_id?: string;
265
+ //
266
+ hide_audit_log?: string;
265
267
  //
266
268
  setup_tips?: string;
267
269
  //
@@ -2226,6 +2228,8 @@ export interface ApiSystemMessage {
2226
2228
  channel_id?: string;
2227
2229
  //
2228
2230
  clan_id?: string;
2231
+ //
2232
+ hide_audit_log?: string;
2229
2233
  //
2230
2234
  id?: string;
2231
2235
  //
@@ -2244,6 +2248,8 @@ export interface ApiSystemMessageRequest {
2244
2248
  channel_id?: string;
2245
2249
  //
2246
2250
  clan_id?: string;
2251
+ //
2252
+ hide_audit_log?: string;
2247
2253
  //
2248
2254
  setup_tips?: string;
2249
2255
  //
@@ -9213,15 +9219,14 @@ export class MezonApi {
9213
9219
  }
9214
9220
 
9215
9221
  /** List Sd Topic */
9216
- listSdTopic(
9217
- bearerToken: string,
9218
- channelId?: string,
9222
+ listSdTopic(bearerToken: string,
9223
+ clanId?: string,
9219
9224
  limit?: number,
9220
9225
  options: any = {}
9221
9226
  ): Promise<ApiSdTopicList> {
9222
9227
  const urlPath = "/v2/sdmtopic";
9223
9228
  const queryParams = new Map<string, any>();
9224
- queryParams.set("channel_id", channelId);
9229
+ queryParams.set("clan_id", clanId);
9225
9230
  queryParams.set("limit", limit);
9226
9231
 
9227
9232
  let bodyJson: string = "";
package/client.ts CHANGED
@@ -4816,7 +4816,7 @@ export class Client {
4816
4816
  //**list sd topic */
4817
4817
  async listSdTopic(
4818
4818
  session: Session,
4819
- channelId?: string,
4819
+ clanId?: string,
4820
4820
  limit?: number
4821
4821
  ): Promise<ApiSdTopicList> {
4822
4822
  if (
@@ -4828,7 +4828,7 @@ export class Client {
4828
4828
  }
4829
4829
 
4830
4830
  return this.apiClient
4831
- .listSdTopic(session.token, channelId, limit)
4831
+ .listSdTopic(session.token, clanId, limit)
4832
4832
  .then((response: ApiSdTopicList) => {
4833
4833
  return Promise.resolve(response);
4834
4834
  });
package/dist/api.gen.d.ts CHANGED
@@ -152,6 +152,7 @@ export interface MezonUpdateRoleDeleteBody {
152
152
  export interface MezonUpdateSystemMessageBody {
153
153
  boost_message?: string;
154
154
  channel_id?: string;
155
+ hide_audit_log?: string;
155
156
  setup_tips?: string;
156
157
  welcome_random?: string;
157
158
  welcome_sticker?: string;
@@ -1293,6 +1294,7 @@ export interface ApiSystemMessage {
1293
1294
  boost_message?: string;
1294
1295
  channel_id?: string;
1295
1296
  clan_id?: string;
1297
+ hide_audit_log?: string;
1296
1298
  id?: string;
1297
1299
  setup_tips?: string;
1298
1300
  welcome_random?: string;
@@ -1303,6 +1305,7 @@ export interface ApiSystemMessageRequest {
1303
1305
  boost_message?: string;
1304
1306
  channel_id?: string;
1305
1307
  clan_id?: string;
1308
+ hide_audit_log?: string;
1306
1309
  setup_tips?: string;
1307
1310
  welcome_random?: string;
1308
1311
  welcome_sticker?: string;
@@ -1936,7 +1939,7 @@ export declare class MezonApi {
1936
1939
  /** Create a system messages. */
1937
1940
  createSystemMessage(bearerToken: string, body: ApiSystemMessageRequest, options?: any): Promise<any>;
1938
1941
  /** List Sd Topic */
1939
- listSdTopic(bearerToken: string, channelId?: string, limit?: number, options?: any): Promise<ApiSdTopicList>;
1942
+ listSdTopic(bearerToken: string, clanId?: string, limit?: number, options?: any): Promise<ApiSdTopicList>;
1940
1943
  /** Create Sd Topic */
1941
1944
  createSdTopic(bearerToken: string, body: ApiSdTopicRequest, options?: any): Promise<ApiSdTopic>;
1942
1945
  /** Delete a specific system messages. */
package/dist/client.d.ts CHANGED
@@ -632,7 +632,7 @@ export declare class Client {
632
632
  /** List a ptt channel's users. */
633
633
  listPTTChannelUsers(session: Session, clanId: string, channelId: string, channelType: number, state?: number, limit?: number, cursor?: string): Promise<ApiPTTChannelUserList>;
634
634
  listWalletLedger(session: Session, limit?: number, cursor?: string, transactionId?: string): Promise<ApiWalletLedgerList>;
635
- listSdTopic(session: Session, channelId?: string, limit?: number): Promise<ApiSdTopicList>;
635
+ listSdTopic(session: Session, clanId?: string, limit?: number): Promise<ApiSdTopicList>;
636
636
  createSdTopic(session: Session, request: ApiSdTopicRequest): Promise<ApiSdTopic>;
637
637
  getTopicDetail(session: Session, topicId?: string): Promise<ApiSdTopic>;
638
638
  }
@@ -5752,10 +5752,10 @@ var MezonApi = class {
5752
5752
  ]);
5753
5753
  }
5754
5754
  /** List Sd Topic */
5755
- listSdTopic(bearerToken, channelId, limit, options = {}) {
5755
+ listSdTopic(bearerToken, clanId, limit, options = {}) {
5756
5756
  const urlPath = "/v2/sdmtopic";
5757
5757
  const queryParams = /* @__PURE__ */ new Map();
5758
- queryParams.set("channel_id", channelId);
5758
+ queryParams.set("clan_id", clanId);
5759
5759
  queryParams.set("limit", limit);
5760
5760
  let bodyJson = "";
5761
5761
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
@@ -10608,12 +10608,12 @@ var Client = class {
10608
10608
  });
10609
10609
  }
10610
10610
  //**list sd topic */
10611
- listSdTopic(session, channelId, limit) {
10611
+ listSdTopic(session, clanId, limit) {
10612
10612
  return __async(this, null, function* () {
10613
10613
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
10614
10614
  yield this.sessionRefresh(session);
10615
10615
  }
10616
- return this.apiClient.listSdTopic(session.token, channelId, limit).then((response) => {
10616
+ return this.apiClient.listSdTopic(session.token, clanId, limit).then((response) => {
10617
10617
  return Promise.resolve(response);
10618
10618
  });
10619
10619
  });
@@ -5718,10 +5718,10 @@ var MezonApi = class {
5718
5718
  ]);
5719
5719
  }
5720
5720
  /** List Sd Topic */
5721
- listSdTopic(bearerToken, channelId, limit, options = {}) {
5721
+ listSdTopic(bearerToken, clanId, limit, options = {}) {
5722
5722
  const urlPath = "/v2/sdmtopic";
5723
5723
  const queryParams = /* @__PURE__ */ new Map();
5724
- queryParams.set("channel_id", channelId);
5724
+ queryParams.set("clan_id", clanId);
5725
5725
  queryParams.set("limit", limit);
5726
5726
  let bodyJson = "";
5727
5727
  const fullUrl = this.buildFullUrl(this.basePath, urlPath, queryParams);
@@ -10574,12 +10574,12 @@ var Client = class {
10574
10574
  });
10575
10575
  }
10576
10576
  //**list sd topic */
10577
- listSdTopic(session, channelId, limit) {
10577
+ listSdTopic(session, clanId, limit) {
10578
10578
  return __async(this, null, function* () {
10579
10579
  if (this.autoRefreshSession && session.refresh_token && session.isexpired((Date.now() + this.expiredTimespanMs) / 1e3)) {
10580
10580
  yield this.sessionRefresh(session);
10581
10581
  }
10582
- return this.apiClient.listSdTopic(session.token, channelId, limit).then((response) => {
10582
+ return this.apiClient.listSdTopic(session.token, clanId, limit).then((response) => {
10583
10583
  return Promise.resolve(response);
10584
10584
  });
10585
10585
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mezon-js",
3
3
 
4
- "version": "2.10.43",
4
+ "version": "2.10.45",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"