message: feat: implement the method for POST /record/comment.json
diff: @@ -5,6 +5,16 @@ type Record = {
  [fieldCode: string]: any;
  };
  +type Mention = {
  + code: string;
  + type: "USER" | "GROUP" | "ORGANIZATION";
  +};
  +
  +type Comment = {
  + text: string;
  + mentions?: Mention[];
  +};
  +
  export class RecordClient {
  private client: HttpClient;
  @@ -100,4 +110,13 @@ export class RecordClient {
  const path = "/k/v1/records/cursor.json";
  return this.client.delete(path, params);
  }
  +
  + public async addComment(params: {
  + app: AppID;
  + record: RecordID;
  + comment: Comment;
  + }): Promise<{ id: string }> {
  + const path = "/k/v1/record/comment.json";
  + return this.client.post(path, params);
  + }
  }
  