mezon-js 2.15.18 → 2.15.19

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/dist/api.d.ts CHANGED
@@ -2239,8 +2239,10 @@ export declare class MezonApi {
2239
2239
  setChanEncryptionMethod(bearerToken: string, channelId: string, body: MezonSetChanEncryptionMethodBody, options?: {}): Promise<any>;
2240
2240
  /** Leave a channel the user is a member of. */
2241
2241
  leaveThread(bearerToken: string, clanId: string, channelId: string, options?: {}): Promise<any>;
2242
- /** Mark forum threads inactive (archived; active = 0) for threads the user belongs to under parent_id. */
2243
- archiveInactiveChannelThreads(bearerToken: string, clanId: string, parentId: string, threadIds: string[], options?: {}): Promise<any>;
2242
+ /** Archive a single channel/thread (active = 0). */
2243
+ archiveChannel(bearerToken: string, clanId: string, channelId: string, options?: {}): Promise<any>;
2244
+ /** List archived top-level channels in a clan. */
2245
+ listArchivedChannelDescs(bearerToken: string, clanId: string, options?: {}): Promise<ApiChannelDescList>;
2244
2246
  /** Kick a set of users from a channel. */
2245
2247
  removeChannelUsers(bearerToken: string, channelId: string, userIds?: Array<string>, options?: {}): Promise<any>;
2246
2248
  /** List all users that are part of a channel. */
package/dist/client.d.ts CHANGED
@@ -431,8 +431,10 @@ export declare class Client {
431
431
  updateChannelTimeline(session: Session, request: ApiUpdateChannelTimelineRequest): Promise<ApiUpdateChannelTimelineResponse>;
432
432
  detailChannelTimeline(session: Session, request: ApiDetailChannelTimelineRequest): Promise<ApiDetailChannelTimelineResponse>;
433
433
  leaveThread(session: Session, clanId: string, channelId: string): Promise<any>;
434
- /** Mark forum threads inactive (archived) under parent_id for threads the session user belongs to. */
435
- archiveInactiveChannelThreads(session: Session, clanId: string, parentId: string, threadIds: string[]): Promise<any>;
434
+ /** Archive a single channel/thread (active = 0). */
435
+ archiveChannel(session: Session, clanId: string, channelId: string): Promise<any>;
436
+ /** List archived top-level channels in a clan. */
437
+ listArchivedChannelDescs(session: Session, clanId: string): Promise<ApiChannelDescList>;
436
438
  getChannelSettingInClan(session: Session, clanId: string, parentId?: string, categoryId?: string, privateChannel?: number, active?: number, status?: number, type?: number, limit?: number, page?: number, channelLabel?: string): Promise<ApiChannelSettingListResponse>;
437
439
  getChannelCanvasList(session: Session, channelId: string, clanId?: string, limit?: number, page?: number): Promise<ApiChannelCanvasListResponse>;
438
440
  getChannelCanvasDetail(session: Session, id: string, clanId?: string, channelId?: string): Promise<any>;