mezon-js 2.15.17 → 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,6 +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
+ /** 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>;
2242
2246
  /** Kick a set of users from a channel. */
2243
2247
  removeChannelUsers(bearerToken: string, channelId: string, userIds?: Array<string>, options?: {}): Promise<any>;
2244
2248
  /** List all users that are part of a channel. */
package/dist/client.d.ts CHANGED
@@ -431,6 +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
+ /** 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>;
434
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>;
435
439
  getChannelCanvasList(session: Session, channelId: string, clanId?: string, limit?: number, page?: number): Promise<ApiChannelCanvasListResponse>;
436
440
  getChannelCanvasDetail(session: Session, id: string, clanId?: string, channelId?: string): Promise<any>;