mezon-js 2.10.42 → 2.10.44

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
@@ -1114,7 +1114,7 @@ export interface ApiCreateEventRequest {
1114
1114
  //
1115
1115
  address?: string;
1116
1116
  //
1117
- channel_id?: string;
1117
+ channel_voice_id?: string;
1118
1118
  //
1119
1119
  clan_id?: string;
1120
1120
  //
@@ -1127,6 +1127,8 @@ export interface ApiCreateEventRequest {
1127
1127
  start_time?: string;
1128
1128
  //
1129
1129
  title?: string;
1130
+ //
1131
+ channel_id?: string;
1130
1132
  }
1131
1133
 
1132
1134
  /** Create a event within clan. */
@@ -1275,7 +1277,7 @@ export interface ApiEventManagement {
1275
1277
  //
1276
1278
  address?: string;
1277
1279
  //
1278
- channel_id?: string;
1280
+ channel_voice_id?: string;
1279
1281
  //
1280
1282
  clan_id?: string;
1281
1283
  //
@@ -1300,6 +1302,8 @@ export interface ApiEventManagement {
1300
1302
  user_ids?: Array<string>;
1301
1303
  //
1302
1304
  create_time?: string;
1305
+ //
1306
+ channel_id?: string;
1303
1307
  }
1304
1308
 
1305
1309
  /** */
@@ -9209,15 +9213,14 @@ export class MezonApi {
9209
9213
  }
9210
9214
 
9211
9215
  /** List Sd Topic */
9212
- listSdTopic(
9213
- bearerToken: string,
9214
- channelId?: string,
9216
+ listSdTopic(bearerToken: string,
9217
+ clanId?: string,
9215
9218
  limit?: number,
9216
9219
  options: any = {}
9217
9220
  ): Promise<ApiSdTopicList> {
9218
9221
  const urlPath = "/v2/sdmtopic";
9219
9222
  const queryParams = new Map<string, any>();
9220
- queryParams.set("channel_id", channelId);
9223
+ queryParams.set("clan_id", clanId);
9221
9224
  queryParams.set("limit", limit);
9222
9225
 
9223
9226
  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
@@ -639,13 +639,14 @@ export interface ApiCreateClanDescRequest {
639
639
  /** Create a event within clan. */
640
640
  export interface ApiCreateEventRequest {
641
641
  address?: string;
642
- channel_id?: string;
642
+ channel_voice_id?: string;
643
643
  clan_id?: string;
644
644
  description?: string;
645
645
  end_time?: string;
646
646
  logo?: string;
647
647
  start_time?: string;
648
648
  title?: string;
649
+ channel_id?: string;
649
650
  }
650
651
  /** Create a event within clan. */
651
652
  export interface ApiUpdateEventRequest {
@@ -733,7 +734,7 @@ export interface ApiEventList {
733
734
  export interface ApiEventManagement {
734
735
  active?: number;
735
736
  address?: string;
736
- channel_id?: string;
737
+ channel_voice_id?: string;
737
738
  clan_id?: string;
738
739
  creator_id?: string;
739
740
  description?: string;
@@ -746,6 +747,7 @@ export interface ApiEventManagement {
746
747
  title?: string;
747
748
  user_ids?: Array<string>;
748
749
  create_time?: string;
750
+ channel_id?: string;
749
751
  }
750
752
  /** */
751
753
  export interface ApiListFavoriteChannelResponse {
@@ -1934,7 +1936,7 @@ export declare class MezonApi {
1934
1936
  /** Create a system messages. */
1935
1937
  createSystemMessage(bearerToken: string, body: ApiSystemMessageRequest, options?: any): Promise<any>;
1936
1938
  /** List Sd Topic */
1937
- listSdTopic(bearerToken: string, channelId?: string, limit?: number, options?: any): Promise<ApiSdTopicList>;
1939
+ listSdTopic(bearerToken: string, clanId?: string, limit?: number, options?: any): Promise<ApiSdTopicList>;
1938
1940
  /** Create Sd Topic */
1939
1941
  createSdTopic(bearerToken: string, body: ApiSdTopicRequest, options?: any): Promise<ApiSdTopic>;
1940
1942
  /** 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.42",
4
+ "version": "2.10.44",
5
5
 
6
6
  "scripts": {
7
7
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"