pl-api
    Preparing search index...

    Function chatsCategory

    • Parameters

      Returns {
          createChat: (
              accountId: string,
          ) => Promise<
              {
                  account: {
                      __meta: { pleroma?: any; source?: any };
                      accepts_chat_messages: boolean | null;
                      acct: string;
                      ap_id: string | null;
                      avatar: string;
                      avatar_default: boolean;
                      avatar_description: string;
                      avatar_static: string;
                      background_image: string | null;
                      birthday?: string;
                      bot: boolean;
                      created_at: string;
                      custom_css: string;
                      deactivated?: boolean;
                      discoverable: boolean;
                      display_name: string;
                      domain: string;
                      emojis: {
                          category: string | null;
                          shortcode: string;
                          static_url: string;
                          url: string;
                          visible_in_picker: boolean;
                      }[];
                      enable_rss: boolean;
                      favicon?: string;
                      fields: { name: string; value: string; verified_at: string
                      | null }[];
                      followers_count: number;
                      following_count: number;
                      fqn: string;
                      group: boolean;
                      header: string;
                      header_default: boolean;
                      header_description: string;
                      header_static: string;
                      hide_collections?: boolean;
                      hide_favorites: boolean;
                      hide_followers?: boolean;
                      hide_followers_count?: boolean;
                      hide_follows?: boolean;
                      hide_follows_count?: boolean;
                      id: string;
                      identity_proofs: { name: string; value: string; verified_at: string }[];
                      indexable: boolean | null;
                      is_admin?: boolean;
                      is_cat: boolean;
                      is_moderator?: boolean;
                      is_suggested?: boolean;
                      last_status_at: string | null;
                      limited?: boolean;
                      local?: boolean;
                      location?: string;
                      locked: boolean;
                      memorial: boolean | null;
                      mention_policy: "none" | "only_known" | "only_contacts";
                      moved:
                          | {
                              __meta: { pleroma?: any; source?: any };
                              accepts_chat_messages: boolean | null;
                              acct: string;
                              ap_id: string | null;
                              avatar: string;
                              avatar_default: boolean;
                              avatar_description: string;
                              avatar_static: string;
                              background_image: string | null;
                              birthday?: string;
                              bot: boolean;
                              created_at: string;
                              custom_css: string;
                              deactivated?: boolean;
                              discoverable: boolean;
                              display_name: string;
                              domain: string;
                              emojis: {
                                  category: (...) | (...);
                                  shortcode: string;
                                  static_url: string;
                                  url: string;
                                  visible_in_picker: boolean;
                              }[];
                              enable_rss: boolean;
                              favicon?: string;
                              fields: { name: string; value: string; verified_at: (...)
                              | (...) }[];
                              followers_count: number;
                              following_count: number;
                              fqn: string;
                              group: boolean;
                              header: string;
                              header_default: boolean;
                              header_description: string;
                              header_static: string;
                              hide_collections?: boolean;
                              hide_favorites: boolean;
                              hide_followers?: boolean;
                              hide_followers_count?: boolean;
                              hide_follows?: boolean;
                              hide_follows_count?: boolean;
                              id: string;
                              identity_proofs: { name: string; value: string; verified_at: string }[];
                              indexable: boolean | null;
                              is_admin?: boolean;
                              is_cat: boolean;
                              is_moderator?: boolean;
                              is_suggested?: boolean;
                              last_status_at: string | null;
                              limited?: boolean;
                              local?: boolean;
                              location?: string;
                              locked: boolean;
                              memorial: boolean | null;
                              mention_policy: "none" | "only_known" | "only_contacts";
                              noindex: boolean | null;
                              note: string;
                              payment_options: (
                                  | { href: ...; name: ...; object_id: ...; type: ... }
                                  | {
                                      amount_min: ...;
                                      chain_id: ...;
                                      object_id: ...;
                                      price: ...;
                                      type: ...;
                                  }
                              )[];
                              permit_followback?: boolean;
                              pronouns: string[];
                              relationship?: {
                                  blocked_by: boolean;
                                  blocking: boolean;
                                  domain_blocking: boolean;
                                  endorsed: boolean;
                                  followed_by: boolean;
                                  following: boolean;
                                  id: string;
                                  languages: (...)
                                  | (...);
                                  muting: boolean;
                                  muting_notifications: boolean;
                                  note: string;
                                  notifying: boolean;
                                  requested: boolean;
                                  showing_reblogs: boolean;
                              };
                              roles: {
                                  color: string;
                                  highlighted: boolean;
                                  id: string;
                                  name: string;
                                  permissions: string;
                              }[];
                              speak_as_cat: boolean;
                              statuses_count: number;
                              subscribers_count: number;
                              suspended?: boolean;
                              url: string;
                              username: string;
                              verified?: boolean;
                          }
                          | null;
                      noindex: boolean
                      | null;
                      note: string;
                      payment_options: (
                          | {
                              href: string
                              | null;
                              name: string | null;
                              object_id: string | null;
                              type: "link";
                          }
                          | {
                              amount_min: number
                              | null;
                              chain_id: string | null;
                              object_id: string | null;
                              price: number | null;
                              type: "monero-subscription";
                          }
                      )[];
                      permit_followback?: boolean;
                      pronouns: string[];
                      relationship?: {
                          blocked_by: boolean;
                          blocking: boolean;
                          domain_blocking: boolean;
                          endorsed: boolean;
                          followed_by: boolean;
                          following: boolean;
                          id: string;
                          languages: string[]
                          | null;
                          muting: boolean;
                          muting_notifications: boolean;
                          note: string;
                          notifying: boolean;
                          requested: boolean;
                          showing_reblogs: boolean;
                      };
                      roles: {
                          color: string;
                          highlighted: boolean;
                          id: string;
                          name: string;
                          permissions: string;
                      }[];
                      speak_as_cat: boolean;
                      statuses_count: number;
                      subscribers_count: number;
                      suspended?: boolean;
                      url: string;
                      username: string;
                      verified?: boolean;
                  } & WithMoved;
                  id: string;
                  last_message: | {
                      account_id: string;
                      attachment: | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              focus?: { x: ...; y: ... };
                              original?: { aspect: ...; height: ...; size: ...; width: ... };
                              small?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "image";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              original?: {
                                  aspect: ...;
                                  duration: ...;
                                  frame_rate: ...;
                                  height: ...;
                                  size: ...;
                                  width: ...;
                              };
                              small?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "video";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              focus?: { x: ...; y: ... };
                              original?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "gifv";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              colors?: {
                                  accent?: ...;
                                  background?: ...;
                                  duration?: ...;
                                  foreground?: ...;
                              };
                              duration?: number;
                              original?: { bitrate?: ...; duration?: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "audio";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          mime_type: string | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "unknown";
                          url: string;
                      }
                      | null;
                      card: | {
                          author_name: string;
                          author_url: string;
                          authors: { account: (...)
                          | (...); name: string; url: string }[];
                          blurhash: string | null;
                          description: string;
                          embed_url: string;
                          height: number;
                          html: string;
                          image: string | null;
                          image_description: string;
                          provider_name: string;
                          provider_url: string;
                          title: string;
                          type: "link" | "video" | "photo" | "rich";
                          url: string;
                          width: number;
                      }
                      | null;
                      chat_id: string;
                      content: string;
                      created_at: string;
                      emojis: {
                          category: string
                          | null;
                          shortcode: string;
                          static_url: string;
                          url: string;
                          visible_in_picker: boolean;
                      }[];
                      id: string;
                      unread: boolean;
                  }
                  | null;
                  unread: number;
                  updated_at: string;
              },
          >;
          createChatMessage: (
              chatId: string,
              params: CreateChatMessageParams,
          ) => Promise<
              {
                  account_id: string;
                  attachment: | {
                      blurhash: string
                      | null;
                      description: string;
                      id: string;
                      meta: {
                          focus?: { x: number; y: number };
                          original?: {
                              aspect: number | null;
                              height: number;
                              size: string | null;
                              width: number;
                          };
                          small?: {
                              aspect: number
                              | null;
                              height: number;
                              size: string | null;
                              width: number;
                          };
                      };
                      mime_type: string
                      | null;
                      preview_url: string;
                      remote_url: string | null;
                      type: "image";
                      url: string;
                  }
                  | {
                      blurhash: string
                      | null;
                      description: string;
                      id: string;
                      meta: {
                          duration?: number;
                          original?: {
                              aspect: number | null;
                              duration: number | null;
                              frame_rate: string | null;
                              height: number;
                              size: string | null;
                              width: number;
                          };
                          small?: {
                              aspect: number
                              | null;
                              height: number;
                              size: string | null;
                              width: number;
                          };
                      };
                      mime_type: string
                      | null;
                      preview_url: string;
                      remote_url: string | null;
                      type: "video";
                      url: string;
                  }
                  | {
                      blurhash: string
                      | null;
                      description: string;
                      id: string;
                      meta: {
                          duration?: number;
                          focus?: { x: number; y: number };
                          original?: {
                              aspect: number | null;
                              height: number;
                              size: string | null;
                              width: number;
                          };
                      };
                      mime_type: string
                      | null;
                      preview_url: string;
                      remote_url: string | null;
                      type: "gifv";
                      url: string;
                  }
                  | {
                      blurhash: string
                      | null;
                      description: string;
                      id: string;
                      meta: {
                          colors?: {
                              accent?: string;
                              background?: string;
                              duration?: number;
                              foreground?: string;
                          };
                          duration?: number;
                          original?: { bitrate?: number; duration?: number };
                      };
                      mime_type: string
                      | null;
                      preview_url: string;
                      remote_url: string | null;
                      type: "audio";
                      url: string;
                  }
                  | {
                      blurhash: string
                      | null;
                      description: string;
                      id: string;
                      mime_type: string | null;
                      preview_url: string;
                      remote_url: string | null;
                      type: "unknown";
                      url: string;
                  }
                  | null;
                  card: | {
                      author_name: string;
                      author_url: string;
                      authors: { account: Account
                      | null; name: string; url: string }[];
                      blurhash: string | null;
                      description: string;
                      embed_url: string;
                      height: number;
                      html: string;
                      image: string | null;
                      image_description: string;
                      provider_name: string;
                      provider_url: string;
                      title: string;
                      type: "link" | "video" | "photo" | "rich";
                      url: string;
                      width: number;
                  }
                  | null;
                  chat_id: string;
                  content: string;
                  created_at: string;
                  emojis: {
                      category: string
                      | null;
                      shortcode: string;
                      static_url: string;
                      url: string;
                      visible_in_picker: boolean;
                  }[];
                  id: string;
                  unread: boolean;
              },
          >;
          deleteChat: (
              chatId: string,
          ) => Promise<
              {
                  account: {
                      __meta: { pleroma?: any; source?: any };
                      accepts_chat_messages: boolean | null;
                      acct: string;
                      ap_id: string | null;
                      avatar: string;
                      avatar_default: boolean;
                      avatar_description: string;
                      avatar_static: string;
                      background_image: string | null;
                      birthday?: string;
                      bot: boolean;
                      created_at: string;
                      custom_css: string;
                      deactivated?: boolean;
                      discoverable: boolean;
                      display_name: string;
                      domain: string;
                      emojis: {
                          category: string | null;
                          shortcode: string;
                          static_url: string;
                          url: string;
                          visible_in_picker: boolean;
                      }[];
                      enable_rss: boolean;
                      favicon?: string;
                      fields: { name: string; value: string; verified_at: string
                      | null }[];
                      followers_count: number;
                      following_count: number;
                      fqn: string;
                      group: boolean;
                      header: string;
                      header_default: boolean;
                      header_description: string;
                      header_static: string;
                      hide_collections?: boolean;
                      hide_favorites: boolean;
                      hide_followers?: boolean;
                      hide_followers_count?: boolean;
                      hide_follows?: boolean;
                      hide_follows_count?: boolean;
                      id: string;
                      identity_proofs: { name: string; value: string; verified_at: string }[];
                      indexable: boolean | null;
                      is_admin?: boolean;
                      is_cat: boolean;
                      is_moderator?: boolean;
                      is_suggested?: boolean;
                      last_status_at: string | null;
                      limited?: boolean;
                      local?: boolean;
                      location?: string;
                      locked: boolean;
                      memorial: boolean | null;
                      mention_policy: "none" | "only_known" | "only_contacts";
                      moved:
                          | {
                              __meta: { pleroma?: any; source?: any };
                              accepts_chat_messages: boolean | null;
                              acct: string;
                              ap_id: string | null;
                              avatar: string;
                              avatar_default: boolean;
                              avatar_description: string;
                              avatar_static: string;
                              background_image: string | null;
                              birthday?: string;
                              bot: boolean;
                              created_at: string;
                              custom_css: string;
                              deactivated?: boolean;
                              discoverable: boolean;
                              display_name: string;
                              domain: string;
                              emojis: {
                                  category: (...) | (...);
                                  shortcode: string;
                                  static_url: string;
                                  url: string;
                                  visible_in_picker: boolean;
                              }[];
                              enable_rss: boolean;
                              favicon?: string;
                              fields: { name: string; value: string; verified_at: (...)
                              | (...) }[];
                              followers_count: number;
                              following_count: number;
                              fqn: string;
                              group: boolean;
                              header: string;
                              header_default: boolean;
                              header_description: string;
                              header_static: string;
                              hide_collections?: boolean;
                              hide_favorites: boolean;
                              hide_followers?: boolean;
                              hide_followers_count?: boolean;
                              hide_follows?: boolean;
                              hide_follows_count?: boolean;
                              id: string;
                              identity_proofs: { name: string; value: string; verified_at: string }[];
                              indexable: boolean | null;
                              is_admin?: boolean;
                              is_cat: boolean;
                              is_moderator?: boolean;
                              is_suggested?: boolean;
                              last_status_at: string | null;
                              limited?: boolean;
                              local?: boolean;
                              location?: string;
                              locked: boolean;
                              memorial: boolean | null;
                              mention_policy: "none" | "only_known" | "only_contacts";
                              noindex: boolean | null;
                              note: string;
                              payment_options: (
                                  | { href: ...; name: ...; object_id: ...; type: ... }
                                  | {
                                      amount_min: ...;
                                      chain_id: ...;
                                      object_id: ...;
                                      price: ...;
                                      type: ...;
                                  }
                              )[];
                              permit_followback?: boolean;
                              pronouns: string[];
                              relationship?: {
                                  blocked_by: boolean;
                                  blocking: boolean;
                                  domain_blocking: boolean;
                                  endorsed: boolean;
                                  followed_by: boolean;
                                  following: boolean;
                                  id: string;
                                  languages: (...)
                                  | (...);
                                  muting: boolean;
                                  muting_notifications: boolean;
                                  note: string;
                                  notifying: boolean;
                                  requested: boolean;
                                  showing_reblogs: boolean;
                              };
                              roles: {
                                  color: string;
                                  highlighted: boolean;
                                  id: string;
                                  name: string;
                                  permissions: string;
                              }[];
                              speak_as_cat: boolean;
                              statuses_count: number;
                              subscribers_count: number;
                              suspended?: boolean;
                              url: string;
                              username: string;
                              verified?: boolean;
                          }
                          | null;
                      noindex: boolean
                      | null;
                      note: string;
                      payment_options: (
                          | {
                              href: string
                              | null;
                              name: string | null;
                              object_id: string | null;
                              type: "link";
                          }
                          | {
                              amount_min: number
                              | null;
                              chain_id: string | null;
                              object_id: string | null;
                              price: number | null;
                              type: "monero-subscription";
                          }
                      )[];
                      permit_followback?: boolean;
                      pronouns: string[];
                      relationship?: {
                          blocked_by: boolean;
                          blocking: boolean;
                          domain_blocking: boolean;
                          endorsed: boolean;
                          followed_by: boolean;
                          following: boolean;
                          id: string;
                          languages: string[]
                          | null;
                          muting: boolean;
                          muting_notifications: boolean;
                          note: string;
                          notifying: boolean;
                          requested: boolean;
                          showing_reblogs: boolean;
                      };
                      roles: {
                          color: string;
                          highlighted: boolean;
                          id: string;
                          name: string;
                          permissions: string;
                      }[];
                      speak_as_cat: boolean;
                      statuses_count: number;
                      subscribers_count: number;
                      suspended?: boolean;
                      url: string;
                      username: string;
                      verified?: boolean;
                  } & WithMoved;
                  id: string;
                  last_message: | {
                      account_id: string;
                      attachment: | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              focus?: { x: ...; y: ... };
                              original?: { aspect: ...; height: ...; size: ...; width: ... };
                              small?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "image";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              original?: {
                                  aspect: ...;
                                  duration: ...;
                                  frame_rate: ...;
                                  height: ...;
                                  size: ...;
                                  width: ...;
                              };
                              small?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "video";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              focus?: { x: ...; y: ... };
                              original?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "gifv";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              colors?: {
                                  accent?: ...;
                                  background?: ...;
                                  duration?: ...;
                                  foreground?: ...;
                              };
                              duration?: number;
                              original?: { bitrate?: ...; duration?: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "audio";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          mime_type: string | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "unknown";
                          url: string;
                      }
                      | null;
                      card: | {
                          author_name: string;
                          author_url: string;
                          authors: { account: (...)
                          | (...); name: string; url: string }[];
                          blurhash: string | null;
                          description: string;
                          embed_url: string;
                          height: number;
                          html: string;
                          image: string | null;
                          image_description: string;
                          provider_name: string;
                          provider_url: string;
                          title: string;
                          type: "link" | "video" | "photo" | "rich";
                          url: string;
                          width: number;
                      }
                      | null;
                      chat_id: string;
                      content: string;
                      created_at: string;
                      emojis: {
                          category: string
                          | null;
                          shortcode: string;
                          static_url: string;
                          url: string;
                          visible_in_picker: boolean;
                      }[];
                      id: string;
                      unread: boolean;
                  }
                  | null;
                  unread: number;
                  updated_at: string;
              },
          >;
          deleteChatMessage: (
              chatId: string,
              messageId: string,
          ) => Promise<
              {
                  account_id: string;
                  attachment: | {
                      blurhash: string
                      | null;
                      description: string;
                      id: string;
                      meta: {
                          focus?: { x: number; y: number };
                          original?: {
                              aspect: number | null;
                              height: number;
                              size: string | null;
                              width: number;
                          };
                          small?: {
                              aspect: number
                              | null;
                              height: number;
                              size: string | null;
                              width: number;
                          };
                      };
                      mime_type: string
                      | null;
                      preview_url: string;
                      remote_url: string | null;
                      type: "image";
                      url: string;
                  }
                  | {
                      blurhash: string
                      | null;
                      description: string;
                      id: string;
                      meta: {
                          duration?: number;
                          original?: {
                              aspect: number | null;
                              duration: number | null;
                              frame_rate: string | null;
                              height: number;
                              size: string | null;
                              width: number;
                          };
                          small?: {
                              aspect: number
                              | null;
                              height: number;
                              size: string | null;
                              width: number;
                          };
                      };
                      mime_type: string
                      | null;
                      preview_url: string;
                      remote_url: string | null;
                      type: "video";
                      url: string;
                  }
                  | {
                      blurhash: string
                      | null;
                      description: string;
                      id: string;
                      meta: {
                          duration?: number;
                          focus?: { x: number; y: number };
                          original?: {
                              aspect: number | null;
                              height: number;
                              size: string | null;
                              width: number;
                          };
                      };
                      mime_type: string
                      | null;
                      preview_url: string;
                      remote_url: string | null;
                      type: "gifv";
                      url: string;
                  }
                  | {
                      blurhash: string
                      | null;
                      description: string;
                      id: string;
                      meta: {
                          colors?: {
                              accent?: string;
                              background?: string;
                              duration?: number;
                              foreground?: string;
                          };
                          duration?: number;
                          original?: { bitrate?: number; duration?: number };
                      };
                      mime_type: string
                      | null;
                      preview_url: string;
                      remote_url: string | null;
                      type: "audio";
                      url: string;
                  }
                  | {
                      blurhash: string
                      | null;
                      description: string;
                      id: string;
                      mime_type: string | null;
                      preview_url: string;
                      remote_url: string | null;
                      type: "unknown";
                      url: string;
                  }
                  | null;
                  card: | {
                      author_name: string;
                      author_url: string;
                      authors: { account: Account
                      | null; name: string; url: string }[];
                      blurhash: string | null;
                      description: string;
                      embed_url: string;
                      height: number;
                      html: string;
                      image: string | null;
                      image_description: string;
                      provider_name: string;
                      provider_url: string;
                      title: string;
                      type: "link" | "video" | "photo" | "rich";
                      url: string;
                      width: number;
                  }
                  | null;
                  chat_id: string;
                  content: string;
                  created_at: string;
                  emojis: {
                      category: string
                      | null;
                      shortcode: string;
                      static_url: string;
                      url: string;
                      visible_in_picker: boolean;
                  }[];
                  id: string;
                  unread: boolean;
              },
          >;
          getChat: (
              chatId: string,
          ) => Promise<
              {
                  account: {
                      __meta: { pleroma?: any; source?: any };
                      accepts_chat_messages: boolean | null;
                      acct: string;
                      ap_id: string | null;
                      avatar: string;
                      avatar_default: boolean;
                      avatar_description: string;
                      avatar_static: string;
                      background_image: string | null;
                      birthday?: string;
                      bot: boolean;
                      created_at: string;
                      custom_css: string;
                      deactivated?: boolean;
                      discoverable: boolean;
                      display_name: string;
                      domain: string;
                      emojis: {
                          category: string | null;
                          shortcode: string;
                          static_url: string;
                          url: string;
                          visible_in_picker: boolean;
                      }[];
                      enable_rss: boolean;
                      favicon?: string;
                      fields: { name: string; value: string; verified_at: string
                      | null }[];
                      followers_count: number;
                      following_count: number;
                      fqn: string;
                      group: boolean;
                      header: string;
                      header_default: boolean;
                      header_description: string;
                      header_static: string;
                      hide_collections?: boolean;
                      hide_favorites: boolean;
                      hide_followers?: boolean;
                      hide_followers_count?: boolean;
                      hide_follows?: boolean;
                      hide_follows_count?: boolean;
                      id: string;
                      identity_proofs: { name: string; value: string; verified_at: string }[];
                      indexable: boolean | null;
                      is_admin?: boolean;
                      is_cat: boolean;
                      is_moderator?: boolean;
                      is_suggested?: boolean;
                      last_status_at: string | null;
                      limited?: boolean;
                      local?: boolean;
                      location?: string;
                      locked: boolean;
                      memorial: boolean | null;
                      mention_policy: "none" | "only_known" | "only_contacts";
                      moved:
                          | {
                              __meta: { pleroma?: any; source?: any };
                              accepts_chat_messages: boolean | null;
                              acct: string;
                              ap_id: string | null;
                              avatar: string;
                              avatar_default: boolean;
                              avatar_description: string;
                              avatar_static: string;
                              background_image: string | null;
                              birthday?: string;
                              bot: boolean;
                              created_at: string;
                              custom_css: string;
                              deactivated?: boolean;
                              discoverable: boolean;
                              display_name: string;
                              domain: string;
                              emojis: {
                                  category: (...) | (...);
                                  shortcode: string;
                                  static_url: string;
                                  url: string;
                                  visible_in_picker: boolean;
                              }[];
                              enable_rss: boolean;
                              favicon?: string;
                              fields: { name: string; value: string; verified_at: (...)
                              | (...) }[];
                              followers_count: number;
                              following_count: number;
                              fqn: string;
                              group: boolean;
                              header: string;
                              header_default: boolean;
                              header_description: string;
                              header_static: string;
                              hide_collections?: boolean;
                              hide_favorites: boolean;
                              hide_followers?: boolean;
                              hide_followers_count?: boolean;
                              hide_follows?: boolean;
                              hide_follows_count?: boolean;
                              id: string;
                              identity_proofs: { name: string; value: string; verified_at: string }[];
                              indexable: boolean | null;
                              is_admin?: boolean;
                              is_cat: boolean;
                              is_moderator?: boolean;
                              is_suggested?: boolean;
                              last_status_at: string | null;
                              limited?: boolean;
                              local?: boolean;
                              location?: string;
                              locked: boolean;
                              memorial: boolean | null;
                              mention_policy: "none" | "only_known" | "only_contacts";
                              noindex: boolean | null;
                              note: string;
                              payment_options: (
                                  | { href: ...; name: ...; object_id: ...; type: ... }
                                  | {
                                      amount_min: ...;
                                      chain_id: ...;
                                      object_id: ...;
                                      price: ...;
                                      type: ...;
                                  }
                              )[];
                              permit_followback?: boolean;
                              pronouns: string[];
                              relationship?: {
                                  blocked_by: boolean;
                                  blocking: boolean;
                                  domain_blocking: boolean;
                                  endorsed: boolean;
                                  followed_by: boolean;
                                  following: boolean;
                                  id: string;
                                  languages: (...)
                                  | (...);
                                  muting: boolean;
                                  muting_notifications: boolean;
                                  note: string;
                                  notifying: boolean;
                                  requested: boolean;
                                  showing_reblogs: boolean;
                              };
                              roles: {
                                  color: string;
                                  highlighted: boolean;
                                  id: string;
                                  name: string;
                                  permissions: string;
                              }[];
                              speak_as_cat: boolean;
                              statuses_count: number;
                              subscribers_count: number;
                              suspended?: boolean;
                              url: string;
                              username: string;
                              verified?: boolean;
                          }
                          | null;
                      noindex: boolean
                      | null;
                      note: string;
                      payment_options: (
                          | {
                              href: string
                              | null;
                              name: string | null;
                              object_id: string | null;
                              type: "link";
                          }
                          | {
                              amount_min: number
                              | null;
                              chain_id: string | null;
                              object_id: string | null;
                              price: number | null;
                              type: "monero-subscription";
                          }
                      )[];
                      permit_followback?: boolean;
                      pronouns: string[];
                      relationship?: {
                          blocked_by: boolean;
                          blocking: boolean;
                          domain_blocking: boolean;
                          endorsed: boolean;
                          followed_by: boolean;
                          following: boolean;
                          id: string;
                          languages: string[]
                          | null;
                          muting: boolean;
                          muting_notifications: boolean;
                          note: string;
                          notifying: boolean;
                          requested: boolean;
                          showing_reblogs: boolean;
                      };
                      roles: {
                          color: string;
                          highlighted: boolean;
                          id: string;
                          name: string;
                          permissions: string;
                      }[];
                      speak_as_cat: boolean;
                      statuses_count: number;
                      subscribers_count: number;
                      suspended?: boolean;
                      url: string;
                      username: string;
                      verified?: boolean;
                  } & WithMoved;
                  id: string;
                  last_message: | {
                      account_id: string;
                      attachment: | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              focus?: { x: ...; y: ... };
                              original?: { aspect: ...; height: ...; size: ...; width: ... };
                              small?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "image";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              original?: {
                                  aspect: ...;
                                  duration: ...;
                                  frame_rate: ...;
                                  height: ...;
                                  size: ...;
                                  width: ...;
                              };
                              small?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "video";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              focus?: { x: ...; y: ... };
                              original?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "gifv";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              colors?: {
                                  accent?: ...;
                                  background?: ...;
                                  duration?: ...;
                                  foreground?: ...;
                              };
                              duration?: number;
                              original?: { bitrate?: ...; duration?: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "audio";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          mime_type: string | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "unknown";
                          url: string;
                      }
                      | null;
                      card: | {
                          author_name: string;
                          author_url: string;
                          authors: { account: (...)
                          | (...); name: string; url: string }[];
                          blurhash: string | null;
                          description: string;
                          embed_url: string;
                          height: number;
                          html: string;
                          image: string | null;
                          image_description: string;
                          provider_name: string;
                          provider_url: string;
                          title: string;
                          type: "link" | "video" | "photo" | "rich";
                          url: string;
                          width: number;
                      }
                      | null;
                      chat_id: string;
                      content: string;
                      created_at: string;
                      emojis: {
                          category: string
                          | null;
                          shortcode: string;
                          static_url: string;
                          url: string;
                          visible_in_picker: boolean;
                      }[];
                      id: string;
                      unread: boolean;
                  }
                  | null;
                  unread: number;
                  updated_at: string;
              },
          >;
          getChatMessages: (
              chatId: string,
              params?: PaginationParams,
          ) => Promise<
              PaginatedResponse<
                  {
                      account_id: string;
                      attachment: | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              focus?: { x: number; y: number };
                              original?: {
                                  aspect: (...) | (...);
                                  height: number;
                                  size: (...) | (...);
                                  width: number;
                              };
                              small?: {
                                  aspect: (...)
                                  | (...);
                                  height: number;
                                  size: (...) | (...);
                                  width: number;
                              };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "image";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              original?: {
                                  aspect: (...) | (...);
                                  duration: (...) | (...);
                                  frame_rate: (...) | (...);
                                  height: number;
                                  size: (...) | (...);
                                  width: number;
                              };
                              small?: {
                                  aspect: (...)
                                  | (...);
                                  height: number;
                                  size: (...) | (...);
                                  width: number;
                              };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "video";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              focus?: { x: number; y: number };
                              original?: {
                                  aspect: (...) | (...);
                                  height: number;
                                  size: (...) | (...);
                                  width: number;
                              };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "gifv";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              colors?: {
                                  accent?: (...) | (...);
                                  background?: (...) | (...);
                                  duration?: (...) | (...);
                                  foreground?: (...) | (...);
                              };
                              duration?: number;
                              original?: { bitrate?: (...)
                              | (...); duration?: (...) | (...) };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "audio";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          mime_type: string | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "unknown";
                          url: string;
                      }
                      | null;
                      card: | {
                          author_name: string;
                          author_url: string;
                          authors: { account: Account
                          | null; name: string; url: string }[];
                          blurhash: string | null;
                          description: string;
                          embed_url: string;
                          height: number;
                          html: string;
                          image: string | null;
                          image_description: string;
                          provider_name: string;
                          provider_url: string;
                          title: string;
                          type: "link" | "video" | "photo" | "rich";
                          url: string;
                          width: number;
                      }
                      | null;
                      chat_id: string;
                      content: string;
                      created_at: string;
                      emojis: {
                          category: string
                          | null;
                          shortcode: string;
                          static_url: string;
                          url: string;
                          visible_in_picker: boolean;
                      }[];
                      id: string;
                      unread: boolean;
                  },
                  true,
              >,
          >;
          getChats: (
              params?: GetChatsParams,
          ) => Promise<
              PaginatedResponse<
                  {
                      account: {
                          __meta: { pleroma?: any; source?: any };
                          accepts_chat_messages: boolean | null;
                          acct: string;
                          ap_id: string | null;
                          avatar: string;
                          avatar_default: boolean;
                          avatar_description: string;
                          avatar_static: string;
                          background_image: string | null;
                          birthday?: string;
                          bot: boolean;
                          created_at: string;
                          custom_css: string;
                          deactivated?: boolean;
                          discoverable: boolean;
                          display_name: string;
                          domain: string;
                          emojis: {
                              category: string | null;
                              shortcode: string;
                              static_url: string;
                              url: string;
                              visible_in_picker: boolean;
                          }[];
                          enable_rss: boolean;
                          favicon?: string;
                          fields: { name: string; value: string; verified_at: string
                          | null }[];
                          followers_count: number;
                          following_count: number;
                          fqn: string;
                          group: boolean;
                          header: string;
                          header_default: boolean;
                          header_description: string;
                          header_static: string;
                          hide_collections?: boolean;
                          hide_favorites: boolean;
                          hide_followers?: boolean;
                          hide_followers_count?: boolean;
                          hide_follows?: boolean;
                          hide_follows_count?: boolean;
                          id: string;
                          identity_proofs: { name: string; value: string; verified_at: string }[];
                          indexable: boolean | null;
                          is_admin?: boolean;
                          is_cat: boolean;
                          is_moderator?: boolean;
                          is_suggested?: boolean;
                          last_status_at: string | null;
                          limited?: boolean;
                          local?: boolean;
                          location?: string;
                          locked: boolean;
                          memorial: boolean | null;
                          mention_policy: "none" | "only_known" | "only_contacts";
                          moved:
                              | {
                                  __meta: { pleroma?: any; source?: any };
                                  accepts_chat_messages: boolean | null;
                                  acct: string;
                                  ap_id: string | null;
                                  avatar: string;
                                  avatar_default: boolean;
                                  avatar_description: string;
                                  avatar_static: string;
                                  background_image: string | null;
                                  birthday?: string;
                                  bot: boolean;
                                  created_at: string;
                                  custom_css: string;
                                  deactivated?: boolean;
                                  discoverable: boolean;
                                  display_name: string;
                                  domain: string;
                                  emojis: {
                                      category: ...;
                                      shortcode: ...;
                                      static_url: ...;
                                      url: ...;
                                      visible_in_picker: ...;
                                  }[];
                                  enable_rss: boolean;
                                  favicon?: string;
                                  fields: { name: ...; value: ...; verified_at: ... }[];
                                  followers_count: number;
                                  following_count: number;
                                  fqn: string;
                                  group: boolean;
                                  header: string;
                                  header_default: boolean;
                                  header_description: string;
                                  header_static: string;
                                  hide_collections?: boolean;
                                  hide_favorites: boolean;
                                  hide_followers?: boolean;
                                  hide_followers_count?: boolean;
                                  hide_follows?: boolean;
                                  hide_follows_count?: boolean;
                                  id: string;
                                  identity_proofs: { name: ...; value: ...; verified_at: ... }[];
                                  indexable: boolean | null;
                                  is_admin?: boolean;
                                  is_cat: boolean;
                                  is_moderator?: boolean;
                                  is_suggested?: boolean;
                                  last_status_at: string | null;
                                  limited?: boolean;
                                  local?: boolean;
                                  location?: string;
                                  locked: boolean;
                                  memorial: boolean | null;
                                  mention_policy: "none" | "only_known" | "only_contacts";
                                  noindex: boolean | null;
                                  note: string;
                                  payment_options: ((...) | (...))[];
                                  permit_followback?: boolean;
                                  pronouns: string[];
                                  relationship?: {
                                      blocked_by: ...;
                                      blocking: ...;
                                      domain_blocking: ...;
                                      endorsed: ...;
                                      followed_by: ...;
                                      following: ...;
                                      id: ...;
                                      languages: ...;
                                      muting: ...;
                                      muting_notifications: ...;
                                      note: ...;
                                      notifying: ...;
                                      requested: ...;
                                      showing_reblogs: ...;
                                  };
                                  roles: {
                                      color: ...;
                                      highlighted: ...;
                                      id: ...;
                                      name: ...;
                                      permissions: ...;
                                  }[];
                                  speak_as_cat: boolean;
                                  statuses_count: number;
                                  subscribers_count: number;
                                  suspended?: boolean;
                                  url: string;
                                  username: string;
                                  verified?: boolean;
                              }
                              | null;
                          noindex: boolean
                          | null;
                          note: string;
                          payment_options: (
                              | {
                                  href: (...)
                                  | (...);
                                  name: (...) | (...);
                                  object_id: (...) | (...);
                                  type: "link";
                              }
                              | {
                                  amount_min: (...)
                                  | (...);
                                  chain_id: (...) | (...);
                                  object_id: (...) | (...);
                                  price: (...) | (...);
                                  type: "monero-subscription";
                              }
                          )[];
                          permit_followback?: boolean;
                          pronouns: string[];
                          relationship?: {
                              blocked_by: boolean;
                              blocking: boolean;
                              domain_blocking: boolean;
                              endorsed: boolean;
                              followed_by: boolean;
                              following: boolean;
                              id: string;
                              languages: (...)[]
                              | null;
                              muting: boolean;
                              muting_notifications: boolean;
                              note: string;
                              notifying: boolean;
                              requested: boolean;
                              showing_reblogs: boolean;
                          };
                          roles: {
                              color: string;
                              highlighted: boolean;
                              id: string;
                              name: string;
                              permissions: string;
                          }[];
                          speak_as_cat: boolean;
                          statuses_count: number;
                          subscribers_count: number;
                          suspended?: boolean;
                          url: string;
                          username: string;
                          verified?: boolean;
                      } & WithMoved;
                      id: string;
                      last_message: | {
                          account_id: string;
                          attachment: | {
                              blurhash: string
                              | null;
                              description: string;
                              id: string;
                              meta: {
                                  focus?: (...) | (...);
                                  original?: (...) | (...);
                                  small?: (...) | (...);
                              };
                              mime_type: string
                              | null;
                              preview_url: string;
                              remote_url: string | null;
                              type: "image";
                              url: string;
                          }
                          | {
                              blurhash: string
                              | null;
                              description: string;
                              id: string;
                              meta: {
                                  duration?: (...) | (...);
                                  original?: (...) | (...);
                                  small?: (...) | (...);
                              };
                              mime_type: string
                              | null;
                              preview_url: string;
                              remote_url: string | null;
                              type: "video";
                              url: string;
                          }
                          | {
                              blurhash: string
                              | null;
                              description: string;
                              id: string;
                              meta: {
                                  duration?: (...) | (...);
                                  focus?: (...) | (...);
                                  original?: (...) | (...);
                              };
                              mime_type: string
                              | null;
                              preview_url: string;
                              remote_url: string | null;
                              type: "gifv";
                              url: string;
                          }
                          | {
                              blurhash: string
                              | null;
                              description: string;
                              id: string;
                              meta: {
                                  colors?: (...) | (...);
                                  duration?: (...) | (...);
                                  original?: (...) | (...);
                              };
                              mime_type: string
                              | null;
                              preview_url: string;
                              remote_url: string | null;
                              type: "audio";
                              url: string;
                          }
                          | {
                              blurhash: string
                              | null;
                              description: string;
                              id: string;
                              mime_type: string | null;
                              preview_url: string;
                              remote_url: string | null;
                              type: "unknown";
                              url: string;
                          }
                          | null;
                          card: | {
                              author_name: string;
                              author_url: string;
                              authors: { account: ...; name: ...; url: ... }[];
                              blurhash: string | null;
                              description: string;
                              embed_url: string;
                              height: number;
                              html: string;
                              image: string | null;
                              image_description: string;
                              provider_name: string;
                              provider_url: string;
                              title: string;
                              type: "link" | "video" | "photo" | "rich";
                              url: string;
                              width: number;
                          }
                          | null;
                          chat_id: string;
                          content: string;
                          created_at: string;
                          emojis: {
                              category: string
                              | null;
                              shortcode: string;
                              static_url: string;
                              url: string;
                              visible_in_picker: boolean;
                          }[];
                          id: string;
                          unread: boolean;
                      }
                      | null;
                      unread: number;
                      updated_at: string;
                  },
                  true,
              >,
          >;
          markChatAsRead: (
              chatId: string,
              last_read_id: string,
          ) => Promise<
              {
                  account: {
                      __meta: { pleroma?: any; source?: any };
                      accepts_chat_messages: boolean | null;
                      acct: string;
                      ap_id: string | null;
                      avatar: string;
                      avatar_default: boolean;
                      avatar_description: string;
                      avatar_static: string;
                      background_image: string | null;
                      birthday?: string;
                      bot: boolean;
                      created_at: string;
                      custom_css: string;
                      deactivated?: boolean;
                      discoverable: boolean;
                      display_name: string;
                      domain: string;
                      emojis: {
                          category: string | null;
                          shortcode: string;
                          static_url: string;
                          url: string;
                          visible_in_picker: boolean;
                      }[];
                      enable_rss: boolean;
                      favicon?: string;
                      fields: { name: string; value: string; verified_at: string
                      | null }[];
                      followers_count: number;
                      following_count: number;
                      fqn: string;
                      group: boolean;
                      header: string;
                      header_default: boolean;
                      header_description: string;
                      header_static: string;
                      hide_collections?: boolean;
                      hide_favorites: boolean;
                      hide_followers?: boolean;
                      hide_followers_count?: boolean;
                      hide_follows?: boolean;
                      hide_follows_count?: boolean;
                      id: string;
                      identity_proofs: { name: string; value: string; verified_at: string }[];
                      indexable: boolean | null;
                      is_admin?: boolean;
                      is_cat: boolean;
                      is_moderator?: boolean;
                      is_suggested?: boolean;
                      last_status_at: string | null;
                      limited?: boolean;
                      local?: boolean;
                      location?: string;
                      locked: boolean;
                      memorial: boolean | null;
                      mention_policy: "none" | "only_known" | "only_contacts";
                      moved:
                          | {
                              __meta: { pleroma?: any; source?: any };
                              accepts_chat_messages: boolean | null;
                              acct: string;
                              ap_id: string | null;
                              avatar: string;
                              avatar_default: boolean;
                              avatar_description: string;
                              avatar_static: string;
                              background_image: string | null;
                              birthday?: string;
                              bot: boolean;
                              created_at: string;
                              custom_css: string;
                              deactivated?: boolean;
                              discoverable: boolean;
                              display_name: string;
                              domain: string;
                              emojis: {
                                  category: (...) | (...);
                                  shortcode: string;
                                  static_url: string;
                                  url: string;
                                  visible_in_picker: boolean;
                              }[];
                              enable_rss: boolean;
                              favicon?: string;
                              fields: { name: string; value: string; verified_at: (...)
                              | (...) }[];
                              followers_count: number;
                              following_count: number;
                              fqn: string;
                              group: boolean;
                              header: string;
                              header_default: boolean;
                              header_description: string;
                              header_static: string;
                              hide_collections?: boolean;
                              hide_favorites: boolean;
                              hide_followers?: boolean;
                              hide_followers_count?: boolean;
                              hide_follows?: boolean;
                              hide_follows_count?: boolean;
                              id: string;
                              identity_proofs: { name: string; value: string; verified_at: string }[];
                              indexable: boolean | null;
                              is_admin?: boolean;
                              is_cat: boolean;
                              is_moderator?: boolean;
                              is_suggested?: boolean;
                              last_status_at: string | null;
                              limited?: boolean;
                              local?: boolean;
                              location?: string;
                              locked: boolean;
                              memorial: boolean | null;
                              mention_policy: "none" | "only_known" | "only_contacts";
                              noindex: boolean | null;
                              note: string;
                              payment_options: (
                                  | { href: ...; name: ...; object_id: ...; type: ... }
                                  | {
                                      amount_min: ...;
                                      chain_id: ...;
                                      object_id: ...;
                                      price: ...;
                                      type: ...;
                                  }
                              )[];
                              permit_followback?: boolean;
                              pronouns: string[];
                              relationship?: {
                                  blocked_by: boolean;
                                  blocking: boolean;
                                  domain_blocking: boolean;
                                  endorsed: boolean;
                                  followed_by: boolean;
                                  following: boolean;
                                  id: string;
                                  languages: (...)
                                  | (...);
                                  muting: boolean;
                                  muting_notifications: boolean;
                                  note: string;
                                  notifying: boolean;
                                  requested: boolean;
                                  showing_reblogs: boolean;
                              };
                              roles: {
                                  color: string;
                                  highlighted: boolean;
                                  id: string;
                                  name: string;
                                  permissions: string;
                              }[];
                              speak_as_cat: boolean;
                              statuses_count: number;
                              subscribers_count: number;
                              suspended?: boolean;
                              url: string;
                              username: string;
                              verified?: boolean;
                          }
                          | null;
                      noindex: boolean
                      | null;
                      note: string;
                      payment_options: (
                          | {
                              href: string
                              | null;
                              name: string | null;
                              object_id: string | null;
                              type: "link";
                          }
                          | {
                              amount_min: number
                              | null;
                              chain_id: string | null;
                              object_id: string | null;
                              price: number | null;
                              type: "monero-subscription";
                          }
                      )[];
                      permit_followback?: boolean;
                      pronouns: string[];
                      relationship?: {
                          blocked_by: boolean;
                          blocking: boolean;
                          domain_blocking: boolean;
                          endorsed: boolean;
                          followed_by: boolean;
                          following: boolean;
                          id: string;
                          languages: string[]
                          | null;
                          muting: boolean;
                          muting_notifications: boolean;
                          note: string;
                          notifying: boolean;
                          requested: boolean;
                          showing_reblogs: boolean;
                      };
                      roles: {
                          color: string;
                          highlighted: boolean;
                          id: string;
                          name: string;
                          permissions: string;
                      }[];
                      speak_as_cat: boolean;
                      statuses_count: number;
                      subscribers_count: number;
                      suspended?: boolean;
                      url: string;
                      username: string;
                      verified?: boolean;
                  } & WithMoved;
                  id: string;
                  last_message: | {
                      account_id: string;
                      attachment: | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              focus?: { x: ...; y: ... };
                              original?: { aspect: ...; height: ...; size: ...; width: ... };
                              small?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "image";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              original?: {
                                  aspect: ...;
                                  duration: ...;
                                  frame_rate: ...;
                                  height: ...;
                                  size: ...;
                                  width: ...;
                              };
                              small?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "video";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              focus?: { x: ...; y: ... };
                              original?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "gifv";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              colors?: {
                                  accent?: ...;
                                  background?: ...;
                                  duration?: ...;
                                  foreground?: ...;
                              };
                              duration?: number;
                              original?: { bitrate?: ...; duration?: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "audio";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          mime_type: string | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "unknown";
                          url: string;
                      }
                      | null;
                      card: | {
                          author_name: string;
                          author_url: string;
                          authors: { account: (...)
                          | (...); name: string; url: string }[];
                          blurhash: string | null;
                          description: string;
                          embed_url: string;
                          height: number;
                          html: string;
                          image: string | null;
                          image_description: string;
                          provider_name: string;
                          provider_url: string;
                          title: string;
                          type: "link" | "video" | "photo" | "rich";
                          url: string;
                          width: number;
                      }
                      | null;
                      chat_id: string;
                      content: string;
                      created_at: string;
                      emojis: {
                          category: string
                          | null;
                          shortcode: string;
                          static_url: string;
                          url: string;
                          visible_in_picker: boolean;
                      }[];
                      id: string;
                      unread: boolean;
                  }
                  | null;
                  unread: number;
                  updated_at: string;
              },
          >;
          markChatMessageAsRead: (
              chatId: string,
              chatMessageId: string,
          ) => Promise<
              {
                  account: {
                      __meta: { pleroma?: any; source?: any };
                      accepts_chat_messages: boolean | null;
                      acct: string;
                      ap_id: string | null;
                      avatar: string;
                      avatar_default: boolean;
                      avatar_description: string;
                      avatar_static: string;
                      background_image: string | null;
                      birthday?: string;
                      bot: boolean;
                      created_at: string;
                      custom_css: string;
                      deactivated?: boolean;
                      discoverable: boolean;
                      display_name: string;
                      domain: string;
                      emojis: {
                          category: string | null;
                          shortcode: string;
                          static_url: string;
                          url: string;
                          visible_in_picker: boolean;
                      }[];
                      enable_rss: boolean;
                      favicon?: string;
                      fields: { name: string; value: string; verified_at: string
                      | null }[];
                      followers_count: number;
                      following_count: number;
                      fqn: string;
                      group: boolean;
                      header: string;
                      header_default: boolean;
                      header_description: string;
                      header_static: string;
                      hide_collections?: boolean;
                      hide_favorites: boolean;
                      hide_followers?: boolean;
                      hide_followers_count?: boolean;
                      hide_follows?: boolean;
                      hide_follows_count?: boolean;
                      id: string;
                      identity_proofs: { name: string; value: string; verified_at: string }[];
                      indexable: boolean | null;
                      is_admin?: boolean;
                      is_cat: boolean;
                      is_moderator?: boolean;
                      is_suggested?: boolean;
                      last_status_at: string | null;
                      limited?: boolean;
                      local?: boolean;
                      location?: string;
                      locked: boolean;
                      memorial: boolean | null;
                      mention_policy: "none" | "only_known" | "only_contacts";
                      moved:
                          | {
                              __meta: { pleroma?: any; source?: any };
                              accepts_chat_messages: boolean | null;
                              acct: string;
                              ap_id: string | null;
                              avatar: string;
                              avatar_default: boolean;
                              avatar_description: string;
                              avatar_static: string;
                              background_image: string | null;
                              birthday?: string;
                              bot: boolean;
                              created_at: string;
                              custom_css: string;
                              deactivated?: boolean;
                              discoverable: boolean;
                              display_name: string;
                              domain: string;
                              emojis: {
                                  category: (...) | (...);
                                  shortcode: string;
                                  static_url: string;
                                  url: string;
                                  visible_in_picker: boolean;
                              }[];
                              enable_rss: boolean;
                              favicon?: string;
                              fields: { name: string; value: string; verified_at: (...)
                              | (...) }[];
                              followers_count: number;
                              following_count: number;
                              fqn: string;
                              group: boolean;
                              header: string;
                              header_default: boolean;
                              header_description: string;
                              header_static: string;
                              hide_collections?: boolean;
                              hide_favorites: boolean;
                              hide_followers?: boolean;
                              hide_followers_count?: boolean;
                              hide_follows?: boolean;
                              hide_follows_count?: boolean;
                              id: string;
                              identity_proofs: { name: string; value: string; verified_at: string }[];
                              indexable: boolean | null;
                              is_admin?: boolean;
                              is_cat: boolean;
                              is_moderator?: boolean;
                              is_suggested?: boolean;
                              last_status_at: string | null;
                              limited?: boolean;
                              local?: boolean;
                              location?: string;
                              locked: boolean;
                              memorial: boolean | null;
                              mention_policy: "none" | "only_known" | "only_contacts";
                              noindex: boolean | null;
                              note: string;
                              payment_options: (
                                  | { href: ...; name: ...; object_id: ...; type: ... }
                                  | {
                                      amount_min: ...;
                                      chain_id: ...;
                                      object_id: ...;
                                      price: ...;
                                      type: ...;
                                  }
                              )[];
                              permit_followback?: boolean;
                              pronouns: string[];
                              relationship?: {
                                  blocked_by: boolean;
                                  blocking: boolean;
                                  domain_blocking: boolean;
                                  endorsed: boolean;
                                  followed_by: boolean;
                                  following: boolean;
                                  id: string;
                                  languages: (...)
                                  | (...);
                                  muting: boolean;
                                  muting_notifications: boolean;
                                  note: string;
                                  notifying: boolean;
                                  requested: boolean;
                                  showing_reblogs: boolean;
                              };
                              roles: {
                                  color: string;
                                  highlighted: boolean;
                                  id: string;
                                  name: string;
                                  permissions: string;
                              }[];
                              speak_as_cat: boolean;
                              statuses_count: number;
                              subscribers_count: number;
                              suspended?: boolean;
                              url: string;
                              username: string;
                              verified?: boolean;
                          }
                          | null;
                      noindex: boolean
                      | null;
                      note: string;
                      payment_options: (
                          | {
                              href: string
                              | null;
                              name: string | null;
                              object_id: string | null;
                              type: "link";
                          }
                          | {
                              amount_min: number
                              | null;
                              chain_id: string | null;
                              object_id: string | null;
                              price: number | null;
                              type: "monero-subscription";
                          }
                      )[];
                      permit_followback?: boolean;
                      pronouns: string[];
                      relationship?: {
                          blocked_by: boolean;
                          blocking: boolean;
                          domain_blocking: boolean;
                          endorsed: boolean;
                          followed_by: boolean;
                          following: boolean;
                          id: string;
                          languages: string[]
                          | null;
                          muting: boolean;
                          muting_notifications: boolean;
                          note: string;
                          notifying: boolean;
                          requested: boolean;
                          showing_reblogs: boolean;
                      };
                      roles: {
                          color: string;
                          highlighted: boolean;
                          id: string;
                          name: string;
                          permissions: string;
                      }[];
                      speak_as_cat: boolean;
                      statuses_count: number;
                      subscribers_count: number;
                      suspended?: boolean;
                      url: string;
                      username: string;
                      verified?: boolean;
                  } & WithMoved;
                  id: string;
                  last_message: | {
                      account_id: string;
                      attachment: | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              focus?: { x: ...; y: ... };
                              original?: { aspect: ...; height: ...; size: ...; width: ... };
                              small?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "image";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              original?: {
                                  aspect: ...;
                                  duration: ...;
                                  frame_rate: ...;
                                  height: ...;
                                  size: ...;
                                  width: ...;
                              };
                              small?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "video";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              duration?: number;
                              focus?: { x: ...; y: ... };
                              original?: { aspect: ...; height: ...; size: ...; width: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "gifv";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          meta: {
                              colors?: {
                                  accent?: ...;
                                  background?: ...;
                                  duration?: ...;
                                  foreground?: ...;
                              };
                              duration?: number;
                              original?: { bitrate?: ...; duration?: ... };
                          };
                          mime_type: string
                          | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "audio";
                          url: string;
                      }
                      | {
                          blurhash: string
                          | null;
                          description: string;
                          id: string;
                          mime_type: string | null;
                          preview_url: string;
                          remote_url: string | null;
                          type: "unknown";
                          url: string;
                      }
                      | null;
                      card: | {
                          author_name: string;
                          author_url: string;
                          authors: { account: (...)
                          | (...); name: string; url: string }[];
                          blurhash: string | null;
                          description: string;
                          embed_url: string;
                          height: number;
                          html: string;
                          image: string | null;
                          image_description: string;
                          provider_name: string;
                          provider_url: string;
                          title: string;
                          type: "link" | "video" | "photo" | "rich";
                          url: string;
                          width: number;
                      }
                      | null;
                      chat_id: string;
                      content: string;
                      created_at: string;
                      emojis: {
                          category: string
                          | null;
                          shortcode: string;
                          static_url: string;
                          url: string;
                          visible_in_picker: boolean;
                      }[];
                      id: string;
                      unread: boolean;
                  }
                  | null;
                  unread: number;
                  updated_at: string;
              },
          >;
      }

      • createChat: (
            accountId: string,
        ) => Promise<
            {
                account: {
                    __meta: { pleroma?: any; source?: any };
                    accepts_chat_messages: boolean | null;
                    acct: string;
                    ap_id: string | null;
                    avatar: string;
                    avatar_default: boolean;
                    avatar_description: string;
                    avatar_static: string;
                    background_image: string | null;
                    birthday?: string;
                    bot: boolean;
                    created_at: string;
                    custom_css: string;
                    deactivated?: boolean;
                    discoverable: boolean;
                    display_name: string;
                    domain: string;
                    emojis: {
                        category: string | null;
                        shortcode: string;
                        static_url: string;
                        url: string;
                        visible_in_picker: boolean;
                    }[];
                    enable_rss: boolean;
                    favicon?: string;
                    fields: { name: string; value: string; verified_at: string
                    | null }[];
                    followers_count: number;
                    following_count: number;
                    fqn: string;
                    group: boolean;
                    header: string;
                    header_default: boolean;
                    header_description: string;
                    header_static: string;
                    hide_collections?: boolean;
                    hide_favorites: boolean;
                    hide_followers?: boolean;
                    hide_followers_count?: boolean;
                    hide_follows?: boolean;
                    hide_follows_count?: boolean;
                    id: string;
                    identity_proofs: { name: string; value: string; verified_at: string }[];
                    indexable: boolean | null;
                    is_admin?: boolean;
                    is_cat: boolean;
                    is_moderator?: boolean;
                    is_suggested?: boolean;
                    last_status_at: string | null;
                    limited?: boolean;
                    local?: boolean;
                    location?: string;
                    locked: boolean;
                    memorial: boolean | null;
                    mention_policy: "none" | "only_known" | "only_contacts";
                    moved:
                        | {
                            __meta: { pleroma?: any; source?: any };
                            accepts_chat_messages: boolean | null;
                            acct: string;
                            ap_id: string | null;
                            avatar: string;
                            avatar_default: boolean;
                            avatar_description: string;
                            avatar_static: string;
                            background_image: string | null;
                            birthday?: string;
                            bot: boolean;
                            created_at: string;
                            custom_css: string;
                            deactivated?: boolean;
                            discoverable: boolean;
                            display_name: string;
                            domain: string;
                            emojis: {
                                category: (...) | (...);
                                shortcode: string;
                                static_url: string;
                                url: string;
                                visible_in_picker: boolean;
                            }[];
                            enable_rss: boolean;
                            favicon?: string;
                            fields: { name: string; value: string; verified_at: (...)
                            | (...) }[];
                            followers_count: number;
                            following_count: number;
                            fqn: string;
                            group: boolean;
                            header: string;
                            header_default: boolean;
                            header_description: string;
                            header_static: string;
                            hide_collections?: boolean;
                            hide_favorites: boolean;
                            hide_followers?: boolean;
                            hide_followers_count?: boolean;
                            hide_follows?: boolean;
                            hide_follows_count?: boolean;
                            id: string;
                            identity_proofs: { name: string; value: string; verified_at: string }[];
                            indexable: boolean | null;
                            is_admin?: boolean;
                            is_cat: boolean;
                            is_moderator?: boolean;
                            is_suggested?: boolean;
                            last_status_at: string | null;
                            limited?: boolean;
                            local?: boolean;
                            location?: string;
                            locked: boolean;
                            memorial: boolean | null;
                            mention_policy: "none" | "only_known" | "only_contacts";
                            noindex: boolean | null;
                            note: string;
                            payment_options: (
                                | { href: ...; name: ...; object_id: ...; type: ... }
                                | {
                                    amount_min: ...;
                                    chain_id: ...;
                                    object_id: ...;
                                    price: ...;
                                    type: ...;
                                }
                            )[];
                            permit_followback?: boolean;
                            pronouns: string[];
                            relationship?: {
                                blocked_by: boolean;
                                blocking: boolean;
                                domain_blocking: boolean;
                                endorsed: boolean;
                                followed_by: boolean;
                                following: boolean;
                                id: string;
                                languages: (...)
                                | (...);
                                muting: boolean;
                                muting_notifications: boolean;
                                note: string;
                                notifying: boolean;
                                requested: boolean;
                                showing_reblogs: boolean;
                            };
                            roles: {
                                color: string;
                                highlighted: boolean;
                                id: string;
                                name: string;
                                permissions: string;
                            }[];
                            speak_as_cat: boolean;
                            statuses_count: number;
                            subscribers_count: number;
                            suspended?: boolean;
                            url: string;
                            username: string;
                            verified?: boolean;
                        }
                        | null;
                    noindex: boolean
                    | null;
                    note: string;
                    payment_options: (
                        | {
                            href: string
                            | null;
                            name: string | null;
                            object_id: string | null;
                            type: "link";
                        }
                        | {
                            amount_min: number
                            | null;
                            chain_id: string | null;
                            object_id: string | null;
                            price: number | null;
                            type: "monero-subscription";
                        }
                    )[];
                    permit_followback?: boolean;
                    pronouns: string[];
                    relationship?: {
                        blocked_by: boolean;
                        blocking: boolean;
                        domain_blocking: boolean;
                        endorsed: boolean;
                        followed_by: boolean;
                        following: boolean;
                        id: string;
                        languages: string[]
                        | null;
                        muting: boolean;
                        muting_notifications: boolean;
                        note: string;
                        notifying: boolean;
                        requested: boolean;
                        showing_reblogs: boolean;
                    };
                    roles: {
                        color: string;
                        highlighted: boolean;
                        id: string;
                        name: string;
                        permissions: string;
                    }[];
                    speak_as_cat: boolean;
                    statuses_count: number;
                    subscribers_count: number;
                    suspended?: boolean;
                    url: string;
                    username: string;
                    verified?: boolean;
                } & WithMoved;
                id: string;
                last_message: | {
                    account_id: string;
                    attachment: | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            focus?: { x: ...; y: ... };
                            original?: { aspect: ...; height: ...; size: ...; width: ... };
                            small?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "image";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            original?: {
                                aspect: ...;
                                duration: ...;
                                frame_rate: ...;
                                height: ...;
                                size: ...;
                                width: ...;
                            };
                            small?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "video";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            focus?: { x: ...; y: ... };
                            original?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "gifv";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            colors?: {
                                accent?: ...;
                                background?: ...;
                                duration?: ...;
                                foreground?: ...;
                            };
                            duration?: number;
                            original?: { bitrate?: ...; duration?: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "audio";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        mime_type: string | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "unknown";
                        url: string;
                    }
                    | null;
                    card: | {
                        author_name: string;
                        author_url: string;
                        authors: { account: (...)
                        | (...); name: string; url: string }[];
                        blurhash: string | null;
                        description: string;
                        embed_url: string;
                        height: number;
                        html: string;
                        image: string | null;
                        image_description: string;
                        provider_name: string;
                        provider_url: string;
                        title: string;
                        type: "link" | "video" | "photo" | "rich";
                        url: string;
                        width: number;
                    }
                    | null;
                    chat_id: string;
                    content: string;
                    created_at: string;
                    emojis: {
                        category: string
                        | null;
                        shortcode: string;
                        static_url: string;
                        url: string;
                        visible_in_picker: boolean;
                    }[];
                    id: string;
                    unread: boolean;
                }
                | null;
                unread: number;
                updated_at: string;
            },
        >

        create or get an existing Chat for a certain recipient

      • createChatMessage: (
            chatId: string,
            params: CreateChatMessageParams,
        ) => Promise<
            {
                account_id: string;
                attachment: | {
                    blurhash: string
                    | null;
                    description: string;
                    id: string;
                    meta: {
                        focus?: { x: number; y: number };
                        original?: {
                            aspect: number | null;
                            height: number;
                            size: string | null;
                            width: number;
                        };
                        small?: {
                            aspect: number
                            | null;
                            height: number;
                            size: string | null;
                            width: number;
                        };
                    };
                    mime_type: string
                    | null;
                    preview_url: string;
                    remote_url: string | null;
                    type: "image";
                    url: string;
                }
                | {
                    blurhash: string
                    | null;
                    description: string;
                    id: string;
                    meta: {
                        duration?: number;
                        original?: {
                            aspect: number | null;
                            duration: number | null;
                            frame_rate: string | null;
                            height: number;
                            size: string | null;
                            width: number;
                        };
                        small?: {
                            aspect: number
                            | null;
                            height: number;
                            size: string | null;
                            width: number;
                        };
                    };
                    mime_type: string
                    | null;
                    preview_url: string;
                    remote_url: string | null;
                    type: "video";
                    url: string;
                }
                | {
                    blurhash: string
                    | null;
                    description: string;
                    id: string;
                    meta: {
                        duration?: number;
                        focus?: { x: number; y: number };
                        original?: {
                            aspect: number | null;
                            height: number;
                            size: string | null;
                            width: number;
                        };
                    };
                    mime_type: string
                    | null;
                    preview_url: string;
                    remote_url: string | null;
                    type: "gifv";
                    url: string;
                }
                | {
                    blurhash: string
                    | null;
                    description: string;
                    id: string;
                    meta: {
                        colors?: {
                            accent?: string;
                            background?: string;
                            duration?: number;
                            foreground?: string;
                        };
                        duration?: number;
                        original?: { bitrate?: number; duration?: number };
                    };
                    mime_type: string
                    | null;
                    preview_url: string;
                    remote_url: string | null;
                    type: "audio";
                    url: string;
                }
                | {
                    blurhash: string
                    | null;
                    description: string;
                    id: string;
                    mime_type: string | null;
                    preview_url: string;
                    remote_url: string | null;
                    type: "unknown";
                    url: string;
                }
                | null;
                card: | {
                    author_name: string;
                    author_url: string;
                    authors: { account: Account
                    | null; name: string; url: string }[];
                    blurhash: string | null;
                    description: string;
                    embed_url: string;
                    height: number;
                    html: string;
                    image: string | null;
                    image_description: string;
                    provider_name: string;
                    provider_url: string;
                    title: string;
                    type: "link" | "video" | "photo" | "rich";
                    url: string;
                    width: number;
                }
                | null;
                chat_id: string;
                content: string;
                created_at: string;
                emojis: {
                    category: string
                    | null;
                    shortcode: string;
                    static_url: string;
                    url: string;
                    visible_in_picker: boolean;
                }[];
                id: string;
                unread: boolean;
            },
        >

        Posting a chat message Posting a chat message for given Chat id works like this:

      • deleteChat: (
            chatId: string,
        ) => Promise<
            {
                account: {
                    __meta: { pleroma?: any; source?: any };
                    accepts_chat_messages: boolean | null;
                    acct: string;
                    ap_id: string | null;
                    avatar: string;
                    avatar_default: boolean;
                    avatar_description: string;
                    avatar_static: string;
                    background_image: string | null;
                    birthday?: string;
                    bot: boolean;
                    created_at: string;
                    custom_css: string;
                    deactivated?: boolean;
                    discoverable: boolean;
                    display_name: string;
                    domain: string;
                    emojis: {
                        category: string | null;
                        shortcode: string;
                        static_url: string;
                        url: string;
                        visible_in_picker: boolean;
                    }[];
                    enable_rss: boolean;
                    favicon?: string;
                    fields: { name: string; value: string; verified_at: string
                    | null }[];
                    followers_count: number;
                    following_count: number;
                    fqn: string;
                    group: boolean;
                    header: string;
                    header_default: boolean;
                    header_description: string;
                    header_static: string;
                    hide_collections?: boolean;
                    hide_favorites: boolean;
                    hide_followers?: boolean;
                    hide_followers_count?: boolean;
                    hide_follows?: boolean;
                    hide_follows_count?: boolean;
                    id: string;
                    identity_proofs: { name: string; value: string; verified_at: string }[];
                    indexable: boolean | null;
                    is_admin?: boolean;
                    is_cat: boolean;
                    is_moderator?: boolean;
                    is_suggested?: boolean;
                    last_status_at: string | null;
                    limited?: boolean;
                    local?: boolean;
                    location?: string;
                    locked: boolean;
                    memorial: boolean | null;
                    mention_policy: "none" | "only_known" | "only_contacts";
                    moved:
                        | {
                            __meta: { pleroma?: any; source?: any };
                            accepts_chat_messages: boolean | null;
                            acct: string;
                            ap_id: string | null;
                            avatar: string;
                            avatar_default: boolean;
                            avatar_description: string;
                            avatar_static: string;
                            background_image: string | null;
                            birthday?: string;
                            bot: boolean;
                            created_at: string;
                            custom_css: string;
                            deactivated?: boolean;
                            discoverable: boolean;
                            display_name: string;
                            domain: string;
                            emojis: {
                                category: (...) | (...);
                                shortcode: string;
                                static_url: string;
                                url: string;
                                visible_in_picker: boolean;
                            }[];
                            enable_rss: boolean;
                            favicon?: string;
                            fields: { name: string; value: string; verified_at: (...)
                            | (...) }[];
                            followers_count: number;
                            following_count: number;
                            fqn: string;
                            group: boolean;
                            header: string;
                            header_default: boolean;
                            header_description: string;
                            header_static: string;
                            hide_collections?: boolean;
                            hide_favorites: boolean;
                            hide_followers?: boolean;
                            hide_followers_count?: boolean;
                            hide_follows?: boolean;
                            hide_follows_count?: boolean;
                            id: string;
                            identity_proofs: { name: string; value: string; verified_at: string }[];
                            indexable: boolean | null;
                            is_admin?: boolean;
                            is_cat: boolean;
                            is_moderator?: boolean;
                            is_suggested?: boolean;
                            last_status_at: string | null;
                            limited?: boolean;
                            local?: boolean;
                            location?: string;
                            locked: boolean;
                            memorial: boolean | null;
                            mention_policy: "none" | "only_known" | "only_contacts";
                            noindex: boolean | null;
                            note: string;
                            payment_options: (
                                | { href: ...; name: ...; object_id: ...; type: ... }
                                | {
                                    amount_min: ...;
                                    chain_id: ...;
                                    object_id: ...;
                                    price: ...;
                                    type: ...;
                                }
                            )[];
                            permit_followback?: boolean;
                            pronouns: string[];
                            relationship?: {
                                blocked_by: boolean;
                                blocking: boolean;
                                domain_blocking: boolean;
                                endorsed: boolean;
                                followed_by: boolean;
                                following: boolean;
                                id: string;
                                languages: (...)
                                | (...);
                                muting: boolean;
                                muting_notifications: boolean;
                                note: string;
                                notifying: boolean;
                                requested: boolean;
                                showing_reblogs: boolean;
                            };
                            roles: {
                                color: string;
                                highlighted: boolean;
                                id: string;
                                name: string;
                                permissions: string;
                            }[];
                            speak_as_cat: boolean;
                            statuses_count: number;
                            subscribers_count: number;
                            suspended?: boolean;
                            url: string;
                            username: string;
                            verified?: boolean;
                        }
                        | null;
                    noindex: boolean
                    | null;
                    note: string;
                    payment_options: (
                        | {
                            href: string
                            | null;
                            name: string | null;
                            object_id: string | null;
                            type: "link";
                        }
                        | {
                            amount_min: number
                            | null;
                            chain_id: string | null;
                            object_id: string | null;
                            price: number | null;
                            type: "monero-subscription";
                        }
                    )[];
                    permit_followback?: boolean;
                    pronouns: string[];
                    relationship?: {
                        blocked_by: boolean;
                        blocking: boolean;
                        domain_blocking: boolean;
                        endorsed: boolean;
                        followed_by: boolean;
                        following: boolean;
                        id: string;
                        languages: string[]
                        | null;
                        muting: boolean;
                        muting_notifications: boolean;
                        note: string;
                        notifying: boolean;
                        requested: boolean;
                        showing_reblogs: boolean;
                    };
                    roles: {
                        color: string;
                        highlighted: boolean;
                        id: string;
                        name: string;
                        permissions: string;
                    }[];
                    speak_as_cat: boolean;
                    statuses_count: number;
                    subscribers_count: number;
                    suspended?: boolean;
                    url: string;
                    username: string;
                    verified?: boolean;
                } & WithMoved;
                id: string;
                last_message: | {
                    account_id: string;
                    attachment: | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            focus?: { x: ...; y: ... };
                            original?: { aspect: ...; height: ...; size: ...; width: ... };
                            small?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "image";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            original?: {
                                aspect: ...;
                                duration: ...;
                                frame_rate: ...;
                                height: ...;
                                size: ...;
                                width: ...;
                            };
                            small?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "video";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            focus?: { x: ...; y: ... };
                            original?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "gifv";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            colors?: {
                                accent?: ...;
                                background?: ...;
                                duration?: ...;
                                foreground?: ...;
                            };
                            duration?: number;
                            original?: { bitrate?: ...; duration?: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "audio";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        mime_type: string | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "unknown";
                        url: string;
                    }
                    | null;
                    card: | {
                        author_name: string;
                        author_url: string;
                        authors: { account: (...)
                        | (...); name: string; url: string }[];
                        blurhash: string | null;
                        description: string;
                        embed_url: string;
                        height: number;
                        html: string;
                        image: string | null;
                        image_description: string;
                        provider_name: string;
                        provider_url: string;
                        title: string;
                        type: "link" | "video" | "photo" | "rich";
                        url: string;
                        width: number;
                    }
                    | null;
                    chat_id: string;
                    content: string;
                    created_at: string;
                    emojis: {
                        category: string
                        | null;
                        shortcode: string;
                        static_url: string;
                        url: string;
                        visible_in_picker: boolean;
                    }[];
                    id: string;
                    unread: boolean;
                }
                | null;
                unread: number;
                updated_at: string;
            },
        >

        Deleting a chat

        Requires featuresFeatures.chatsDelete.

      • deleteChatMessage: (
            chatId: string,
            messageId: string,
        ) => Promise<
            {
                account_id: string;
                attachment: | {
                    blurhash: string
                    | null;
                    description: string;
                    id: string;
                    meta: {
                        focus?: { x: number; y: number };
                        original?: {
                            aspect: number | null;
                            height: number;
                            size: string | null;
                            width: number;
                        };
                        small?: {
                            aspect: number
                            | null;
                            height: number;
                            size: string | null;
                            width: number;
                        };
                    };
                    mime_type: string
                    | null;
                    preview_url: string;
                    remote_url: string | null;
                    type: "image";
                    url: string;
                }
                | {
                    blurhash: string
                    | null;
                    description: string;
                    id: string;
                    meta: {
                        duration?: number;
                        original?: {
                            aspect: number | null;
                            duration: number | null;
                            frame_rate: string | null;
                            height: number;
                            size: string | null;
                            width: number;
                        };
                        small?: {
                            aspect: number
                            | null;
                            height: number;
                            size: string | null;
                            width: number;
                        };
                    };
                    mime_type: string
                    | null;
                    preview_url: string;
                    remote_url: string | null;
                    type: "video";
                    url: string;
                }
                | {
                    blurhash: string
                    | null;
                    description: string;
                    id: string;
                    meta: {
                        duration?: number;
                        focus?: { x: number; y: number };
                        original?: {
                            aspect: number | null;
                            height: number;
                            size: string | null;
                            width: number;
                        };
                    };
                    mime_type: string
                    | null;
                    preview_url: string;
                    remote_url: string | null;
                    type: "gifv";
                    url: string;
                }
                | {
                    blurhash: string
                    | null;
                    description: string;
                    id: string;
                    meta: {
                        colors?: {
                            accent?: string;
                            background?: string;
                            duration?: number;
                            foreground?: string;
                        };
                        duration?: number;
                        original?: { bitrate?: number; duration?: number };
                    };
                    mime_type: string
                    | null;
                    preview_url: string;
                    remote_url: string | null;
                    type: "audio";
                    url: string;
                }
                | {
                    blurhash: string
                    | null;
                    description: string;
                    id: string;
                    mime_type: string | null;
                    preview_url: string;
                    remote_url: string | null;
                    type: "unknown";
                    url: string;
                }
                | null;
                card: | {
                    author_name: string;
                    author_url: string;
                    authors: { account: Account
                    | null; name: string; url: string }[];
                    blurhash: string | null;
                    description: string;
                    embed_url: string;
                    height: number;
                    html: string;
                    image: string | null;
                    image_description: string;
                    provider_name: string;
                    provider_url: string;
                    title: string;
                    type: "link" | "video" | "photo" | "rich";
                    url: string;
                    width: number;
                }
                | null;
                chat_id: string;
                content: string;
                created_at: string;
                emojis: {
                    category: string
                    | null;
                    shortcode: string;
                    static_url: string;
                    url: string;
                    visible_in_picker: boolean;
                }[];
                id: string;
                unread: boolean;
            },
        >

        Deleting a chat message Deleting a chat message for given Chat id works like this:

      • getChat: (
            chatId: string,
        ) => Promise<
            {
                account: {
                    __meta: { pleroma?: any; source?: any };
                    accepts_chat_messages: boolean | null;
                    acct: string;
                    ap_id: string | null;
                    avatar: string;
                    avatar_default: boolean;
                    avatar_description: string;
                    avatar_static: string;
                    background_image: string | null;
                    birthday?: string;
                    bot: boolean;
                    created_at: string;
                    custom_css: string;
                    deactivated?: boolean;
                    discoverable: boolean;
                    display_name: string;
                    domain: string;
                    emojis: {
                        category: string | null;
                        shortcode: string;
                        static_url: string;
                        url: string;
                        visible_in_picker: boolean;
                    }[];
                    enable_rss: boolean;
                    favicon?: string;
                    fields: { name: string; value: string; verified_at: string
                    | null }[];
                    followers_count: number;
                    following_count: number;
                    fqn: string;
                    group: boolean;
                    header: string;
                    header_default: boolean;
                    header_description: string;
                    header_static: string;
                    hide_collections?: boolean;
                    hide_favorites: boolean;
                    hide_followers?: boolean;
                    hide_followers_count?: boolean;
                    hide_follows?: boolean;
                    hide_follows_count?: boolean;
                    id: string;
                    identity_proofs: { name: string; value: string; verified_at: string }[];
                    indexable: boolean | null;
                    is_admin?: boolean;
                    is_cat: boolean;
                    is_moderator?: boolean;
                    is_suggested?: boolean;
                    last_status_at: string | null;
                    limited?: boolean;
                    local?: boolean;
                    location?: string;
                    locked: boolean;
                    memorial: boolean | null;
                    mention_policy: "none" | "only_known" | "only_contacts";
                    moved:
                        | {
                            __meta: { pleroma?: any; source?: any };
                            accepts_chat_messages: boolean | null;
                            acct: string;
                            ap_id: string | null;
                            avatar: string;
                            avatar_default: boolean;
                            avatar_description: string;
                            avatar_static: string;
                            background_image: string | null;
                            birthday?: string;
                            bot: boolean;
                            created_at: string;
                            custom_css: string;
                            deactivated?: boolean;
                            discoverable: boolean;
                            display_name: string;
                            domain: string;
                            emojis: {
                                category: (...) | (...);
                                shortcode: string;
                                static_url: string;
                                url: string;
                                visible_in_picker: boolean;
                            }[];
                            enable_rss: boolean;
                            favicon?: string;
                            fields: { name: string; value: string; verified_at: (...)
                            | (...) }[];
                            followers_count: number;
                            following_count: number;
                            fqn: string;
                            group: boolean;
                            header: string;
                            header_default: boolean;
                            header_description: string;
                            header_static: string;
                            hide_collections?: boolean;
                            hide_favorites: boolean;
                            hide_followers?: boolean;
                            hide_followers_count?: boolean;
                            hide_follows?: boolean;
                            hide_follows_count?: boolean;
                            id: string;
                            identity_proofs: { name: string; value: string; verified_at: string }[];
                            indexable: boolean | null;
                            is_admin?: boolean;
                            is_cat: boolean;
                            is_moderator?: boolean;
                            is_suggested?: boolean;
                            last_status_at: string | null;
                            limited?: boolean;
                            local?: boolean;
                            location?: string;
                            locked: boolean;
                            memorial: boolean | null;
                            mention_policy: "none" | "only_known" | "only_contacts";
                            noindex: boolean | null;
                            note: string;
                            payment_options: (
                                | { href: ...; name: ...; object_id: ...; type: ... }
                                | {
                                    amount_min: ...;
                                    chain_id: ...;
                                    object_id: ...;
                                    price: ...;
                                    type: ...;
                                }
                            )[];
                            permit_followback?: boolean;
                            pronouns: string[];
                            relationship?: {
                                blocked_by: boolean;
                                blocking: boolean;
                                domain_blocking: boolean;
                                endorsed: boolean;
                                followed_by: boolean;
                                following: boolean;
                                id: string;
                                languages: (...)
                                | (...);
                                muting: boolean;
                                muting_notifications: boolean;
                                note: string;
                                notifying: boolean;
                                requested: boolean;
                                showing_reblogs: boolean;
                            };
                            roles: {
                                color: string;
                                highlighted: boolean;
                                id: string;
                                name: string;
                                permissions: string;
                            }[];
                            speak_as_cat: boolean;
                            statuses_count: number;
                            subscribers_count: number;
                            suspended?: boolean;
                            url: string;
                            username: string;
                            verified?: boolean;
                        }
                        | null;
                    noindex: boolean
                    | null;
                    note: string;
                    payment_options: (
                        | {
                            href: string
                            | null;
                            name: string | null;
                            object_id: string | null;
                            type: "link";
                        }
                        | {
                            amount_min: number
                            | null;
                            chain_id: string | null;
                            object_id: string | null;
                            price: number | null;
                            type: "monero-subscription";
                        }
                    )[];
                    permit_followback?: boolean;
                    pronouns: string[];
                    relationship?: {
                        blocked_by: boolean;
                        blocking: boolean;
                        domain_blocking: boolean;
                        endorsed: boolean;
                        followed_by: boolean;
                        following: boolean;
                        id: string;
                        languages: string[]
                        | null;
                        muting: boolean;
                        muting_notifications: boolean;
                        note: string;
                        notifying: boolean;
                        requested: boolean;
                        showing_reblogs: boolean;
                    };
                    roles: {
                        color: string;
                        highlighted: boolean;
                        id: string;
                        name: string;
                        permissions: string;
                    }[];
                    speak_as_cat: boolean;
                    statuses_count: number;
                    subscribers_count: number;
                    suspended?: boolean;
                    url: string;
                    username: string;
                    verified?: boolean;
                } & WithMoved;
                id: string;
                last_message: | {
                    account_id: string;
                    attachment: | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            focus?: { x: ...; y: ... };
                            original?: { aspect: ...; height: ...; size: ...; width: ... };
                            small?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "image";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            original?: {
                                aspect: ...;
                                duration: ...;
                                frame_rate: ...;
                                height: ...;
                                size: ...;
                                width: ...;
                            };
                            small?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "video";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            focus?: { x: ...; y: ... };
                            original?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "gifv";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            colors?: {
                                accent?: ...;
                                background?: ...;
                                duration?: ...;
                                foreground?: ...;
                            };
                            duration?: number;
                            original?: { bitrate?: ...; duration?: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "audio";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        mime_type: string | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "unknown";
                        url: string;
                    }
                    | null;
                    card: | {
                        author_name: string;
                        author_url: string;
                        authors: { account: (...)
                        | (...); name: string; url: string }[];
                        blurhash: string | null;
                        description: string;
                        embed_url: string;
                        height: number;
                        html: string;
                        image: string | null;
                        image_description: string;
                        provider_name: string;
                        provider_url: string;
                        title: string;
                        type: "link" | "video" | "photo" | "rich";
                        url: string;
                        width: number;
                    }
                    | null;
                    chat_id: string;
                    content: string;
                    created_at: string;
                    emojis: {
                        category: string
                        | null;
                        shortcode: string;
                        static_url: string;
                        url: string;
                        visible_in_picker: boolean;
                    }[];
                    id: string;
                    unread: boolean;
                }
                | null;
                unread: number;
                updated_at: string;
            },
        >
      • getChatMessages: (
            chatId: string,
            params?: PaginationParams,
        ) => Promise<
            PaginatedResponse<
                {
                    account_id: string;
                    attachment: | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            focus?: { x: number; y: number };
                            original?: {
                                aspect: (...) | (...);
                                height: number;
                                size: (...) | (...);
                                width: number;
                            };
                            small?: {
                                aspect: (...)
                                | (...);
                                height: number;
                                size: (...) | (...);
                                width: number;
                            };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "image";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            original?: {
                                aspect: (...) | (...);
                                duration: (...) | (...);
                                frame_rate: (...) | (...);
                                height: number;
                                size: (...) | (...);
                                width: number;
                            };
                            small?: {
                                aspect: (...)
                                | (...);
                                height: number;
                                size: (...) | (...);
                                width: number;
                            };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "video";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            focus?: { x: number; y: number };
                            original?: {
                                aspect: (...) | (...);
                                height: number;
                                size: (...) | (...);
                                width: number;
                            };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "gifv";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            colors?: {
                                accent?: (...) | (...);
                                background?: (...) | (...);
                                duration?: (...) | (...);
                                foreground?: (...) | (...);
                            };
                            duration?: number;
                            original?: { bitrate?: (...)
                            | (...); duration?: (...) | (...) };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "audio";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        mime_type: string | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "unknown";
                        url: string;
                    }
                    | null;
                    card: | {
                        author_name: string;
                        author_url: string;
                        authors: { account: Account
                        | null; name: string; url: string }[];
                        blurhash: string | null;
                        description: string;
                        embed_url: string;
                        height: number;
                        html: string;
                        image: string | null;
                        image_description: string;
                        provider_name: string;
                        provider_url: string;
                        title: string;
                        type: "link" | "video" | "photo" | "rich";
                        url: string;
                        width: number;
                    }
                    | null;
                    chat_id: string;
                    content: string;
                    created_at: string;
                    emojis: {
                        category: string
                        | null;
                        shortcode: string;
                        static_url: string;
                        url: string;
                        visible_in_picker: boolean;
                    }[];
                    id: string;
                    unread: boolean;
                },
                true,
            >,
        >

        Getting the messages for a Chat For a given Chat id, you can get the associated messages with

      • getChats: (
            params?: GetChatsParams,
        ) => Promise<
            PaginatedResponse<
                {
                    account: {
                        __meta: { pleroma?: any; source?: any };
                        accepts_chat_messages: boolean | null;
                        acct: string;
                        ap_id: string | null;
                        avatar: string;
                        avatar_default: boolean;
                        avatar_description: string;
                        avatar_static: string;
                        background_image: string | null;
                        birthday?: string;
                        bot: boolean;
                        created_at: string;
                        custom_css: string;
                        deactivated?: boolean;
                        discoverable: boolean;
                        display_name: string;
                        domain: string;
                        emojis: {
                            category: string | null;
                            shortcode: string;
                            static_url: string;
                            url: string;
                            visible_in_picker: boolean;
                        }[];
                        enable_rss: boolean;
                        favicon?: string;
                        fields: { name: string; value: string; verified_at: string
                        | null }[];
                        followers_count: number;
                        following_count: number;
                        fqn: string;
                        group: boolean;
                        header: string;
                        header_default: boolean;
                        header_description: string;
                        header_static: string;
                        hide_collections?: boolean;
                        hide_favorites: boolean;
                        hide_followers?: boolean;
                        hide_followers_count?: boolean;
                        hide_follows?: boolean;
                        hide_follows_count?: boolean;
                        id: string;
                        identity_proofs: { name: string; value: string; verified_at: string }[];
                        indexable: boolean | null;
                        is_admin?: boolean;
                        is_cat: boolean;
                        is_moderator?: boolean;
                        is_suggested?: boolean;
                        last_status_at: string | null;
                        limited?: boolean;
                        local?: boolean;
                        location?: string;
                        locked: boolean;
                        memorial: boolean | null;
                        mention_policy: "none" | "only_known" | "only_contacts";
                        moved:
                            | {
                                __meta: { pleroma?: any; source?: any };
                                accepts_chat_messages: boolean | null;
                                acct: string;
                                ap_id: string | null;
                                avatar: string;
                                avatar_default: boolean;
                                avatar_description: string;
                                avatar_static: string;
                                background_image: string | null;
                                birthday?: string;
                                bot: boolean;
                                created_at: string;
                                custom_css: string;
                                deactivated?: boolean;
                                discoverable: boolean;
                                display_name: string;
                                domain: string;
                                emojis: {
                                    category: ...;
                                    shortcode: ...;
                                    static_url: ...;
                                    url: ...;
                                    visible_in_picker: ...;
                                }[];
                                enable_rss: boolean;
                                favicon?: string;
                                fields: { name: ...; value: ...; verified_at: ... }[];
                                followers_count: number;
                                following_count: number;
                                fqn: string;
                                group: boolean;
                                header: string;
                                header_default: boolean;
                                header_description: string;
                                header_static: string;
                                hide_collections?: boolean;
                                hide_favorites: boolean;
                                hide_followers?: boolean;
                                hide_followers_count?: boolean;
                                hide_follows?: boolean;
                                hide_follows_count?: boolean;
                                id: string;
                                identity_proofs: { name: ...; value: ...; verified_at: ... }[];
                                indexable: boolean | null;
                                is_admin?: boolean;
                                is_cat: boolean;
                                is_moderator?: boolean;
                                is_suggested?: boolean;
                                last_status_at: string | null;
                                limited?: boolean;
                                local?: boolean;
                                location?: string;
                                locked: boolean;
                                memorial: boolean | null;
                                mention_policy: "none" | "only_known" | "only_contacts";
                                noindex: boolean | null;
                                note: string;
                                payment_options: ((...) | (...))[];
                                permit_followback?: boolean;
                                pronouns: string[];
                                relationship?: {
                                    blocked_by: ...;
                                    blocking: ...;
                                    domain_blocking: ...;
                                    endorsed: ...;
                                    followed_by: ...;
                                    following: ...;
                                    id: ...;
                                    languages: ...;
                                    muting: ...;
                                    muting_notifications: ...;
                                    note: ...;
                                    notifying: ...;
                                    requested: ...;
                                    showing_reblogs: ...;
                                };
                                roles: {
                                    color: ...;
                                    highlighted: ...;
                                    id: ...;
                                    name: ...;
                                    permissions: ...;
                                }[];
                                speak_as_cat: boolean;
                                statuses_count: number;
                                subscribers_count: number;
                                suspended?: boolean;
                                url: string;
                                username: string;
                                verified?: boolean;
                            }
                            | null;
                        noindex: boolean
                        | null;
                        note: string;
                        payment_options: (
                            | {
                                href: (...)
                                | (...);
                                name: (...) | (...);
                                object_id: (...) | (...);
                                type: "link";
                            }
                            | {
                                amount_min: (...)
                                | (...);
                                chain_id: (...) | (...);
                                object_id: (...) | (...);
                                price: (...) | (...);
                                type: "monero-subscription";
                            }
                        )[];
                        permit_followback?: boolean;
                        pronouns: string[];
                        relationship?: {
                            blocked_by: boolean;
                            blocking: boolean;
                            domain_blocking: boolean;
                            endorsed: boolean;
                            followed_by: boolean;
                            following: boolean;
                            id: string;
                            languages: (...)[]
                            | null;
                            muting: boolean;
                            muting_notifications: boolean;
                            note: string;
                            notifying: boolean;
                            requested: boolean;
                            showing_reblogs: boolean;
                        };
                        roles: {
                            color: string;
                            highlighted: boolean;
                            id: string;
                            name: string;
                            permissions: string;
                        }[];
                        speak_as_cat: boolean;
                        statuses_count: number;
                        subscribers_count: number;
                        suspended?: boolean;
                        url: string;
                        username: string;
                        verified?: boolean;
                    } & WithMoved;
                    id: string;
                    last_message: | {
                        account_id: string;
                        attachment: | {
                            blurhash: string
                            | null;
                            description: string;
                            id: string;
                            meta: {
                                focus?: (...) | (...);
                                original?: (...) | (...);
                                small?: (...) | (...);
                            };
                            mime_type: string
                            | null;
                            preview_url: string;
                            remote_url: string | null;
                            type: "image";
                            url: string;
                        }
                        | {
                            blurhash: string
                            | null;
                            description: string;
                            id: string;
                            meta: {
                                duration?: (...) | (...);
                                original?: (...) | (...);
                                small?: (...) | (...);
                            };
                            mime_type: string
                            | null;
                            preview_url: string;
                            remote_url: string | null;
                            type: "video";
                            url: string;
                        }
                        | {
                            blurhash: string
                            | null;
                            description: string;
                            id: string;
                            meta: {
                                duration?: (...) | (...);
                                focus?: (...) | (...);
                                original?: (...) | (...);
                            };
                            mime_type: string
                            | null;
                            preview_url: string;
                            remote_url: string | null;
                            type: "gifv";
                            url: string;
                        }
                        | {
                            blurhash: string
                            | null;
                            description: string;
                            id: string;
                            meta: {
                                colors?: (...) | (...);
                                duration?: (...) | (...);
                                original?: (...) | (...);
                            };
                            mime_type: string
                            | null;
                            preview_url: string;
                            remote_url: string | null;
                            type: "audio";
                            url: string;
                        }
                        | {
                            blurhash: string
                            | null;
                            description: string;
                            id: string;
                            mime_type: string | null;
                            preview_url: string;
                            remote_url: string | null;
                            type: "unknown";
                            url: string;
                        }
                        | null;
                        card: | {
                            author_name: string;
                            author_url: string;
                            authors: { account: ...; name: ...; url: ... }[];
                            blurhash: string | null;
                            description: string;
                            embed_url: string;
                            height: number;
                            html: string;
                            image: string | null;
                            image_description: string;
                            provider_name: string;
                            provider_url: string;
                            title: string;
                            type: "link" | "video" | "photo" | "rich";
                            url: string;
                            width: number;
                        }
                        | null;
                        chat_id: string;
                        content: string;
                        created_at: string;
                        emojis: {
                            category: string
                            | null;
                            shortcode: string;
                            static_url: string;
                            url: string;
                            visible_in_picker: boolean;
                        }[];
                        id: string;
                        unread: boolean;
                    }
                    | null;
                    unread: number;
                    updated_at: string;
                },
                true,
            >,
        >

        Getting a list of Chats This will return a list of chats that you have been involved in, sorted by their last update (so new chats will be at the top).

      • markChatAsRead: (
            chatId: string,
            last_read_id: string,
        ) => Promise<
            {
                account: {
                    __meta: { pleroma?: any; source?: any };
                    accepts_chat_messages: boolean | null;
                    acct: string;
                    ap_id: string | null;
                    avatar: string;
                    avatar_default: boolean;
                    avatar_description: string;
                    avatar_static: string;
                    background_image: string | null;
                    birthday?: string;
                    bot: boolean;
                    created_at: string;
                    custom_css: string;
                    deactivated?: boolean;
                    discoverable: boolean;
                    display_name: string;
                    domain: string;
                    emojis: {
                        category: string | null;
                        shortcode: string;
                        static_url: string;
                        url: string;
                        visible_in_picker: boolean;
                    }[];
                    enable_rss: boolean;
                    favicon?: string;
                    fields: { name: string; value: string; verified_at: string
                    | null }[];
                    followers_count: number;
                    following_count: number;
                    fqn: string;
                    group: boolean;
                    header: string;
                    header_default: boolean;
                    header_description: string;
                    header_static: string;
                    hide_collections?: boolean;
                    hide_favorites: boolean;
                    hide_followers?: boolean;
                    hide_followers_count?: boolean;
                    hide_follows?: boolean;
                    hide_follows_count?: boolean;
                    id: string;
                    identity_proofs: { name: string; value: string; verified_at: string }[];
                    indexable: boolean | null;
                    is_admin?: boolean;
                    is_cat: boolean;
                    is_moderator?: boolean;
                    is_suggested?: boolean;
                    last_status_at: string | null;
                    limited?: boolean;
                    local?: boolean;
                    location?: string;
                    locked: boolean;
                    memorial: boolean | null;
                    mention_policy: "none" | "only_known" | "only_contacts";
                    moved:
                        | {
                            __meta: { pleroma?: any; source?: any };
                            accepts_chat_messages: boolean | null;
                            acct: string;
                            ap_id: string | null;
                            avatar: string;
                            avatar_default: boolean;
                            avatar_description: string;
                            avatar_static: string;
                            background_image: string | null;
                            birthday?: string;
                            bot: boolean;
                            created_at: string;
                            custom_css: string;
                            deactivated?: boolean;
                            discoverable: boolean;
                            display_name: string;
                            domain: string;
                            emojis: {
                                category: (...) | (...);
                                shortcode: string;
                                static_url: string;
                                url: string;
                                visible_in_picker: boolean;
                            }[];
                            enable_rss: boolean;
                            favicon?: string;
                            fields: { name: string; value: string; verified_at: (...)
                            | (...) }[];
                            followers_count: number;
                            following_count: number;
                            fqn: string;
                            group: boolean;
                            header: string;
                            header_default: boolean;
                            header_description: string;
                            header_static: string;
                            hide_collections?: boolean;
                            hide_favorites: boolean;
                            hide_followers?: boolean;
                            hide_followers_count?: boolean;
                            hide_follows?: boolean;
                            hide_follows_count?: boolean;
                            id: string;
                            identity_proofs: { name: string; value: string; verified_at: string }[];
                            indexable: boolean | null;
                            is_admin?: boolean;
                            is_cat: boolean;
                            is_moderator?: boolean;
                            is_suggested?: boolean;
                            last_status_at: string | null;
                            limited?: boolean;
                            local?: boolean;
                            location?: string;
                            locked: boolean;
                            memorial: boolean | null;
                            mention_policy: "none" | "only_known" | "only_contacts";
                            noindex: boolean | null;
                            note: string;
                            payment_options: (
                                | { href: ...; name: ...; object_id: ...; type: ... }
                                | {
                                    amount_min: ...;
                                    chain_id: ...;
                                    object_id: ...;
                                    price: ...;
                                    type: ...;
                                }
                            )[];
                            permit_followback?: boolean;
                            pronouns: string[];
                            relationship?: {
                                blocked_by: boolean;
                                blocking: boolean;
                                domain_blocking: boolean;
                                endorsed: boolean;
                                followed_by: boolean;
                                following: boolean;
                                id: string;
                                languages: (...)
                                | (...);
                                muting: boolean;
                                muting_notifications: boolean;
                                note: string;
                                notifying: boolean;
                                requested: boolean;
                                showing_reblogs: boolean;
                            };
                            roles: {
                                color: string;
                                highlighted: boolean;
                                id: string;
                                name: string;
                                permissions: string;
                            }[];
                            speak_as_cat: boolean;
                            statuses_count: number;
                            subscribers_count: number;
                            suspended?: boolean;
                            url: string;
                            username: string;
                            verified?: boolean;
                        }
                        | null;
                    noindex: boolean
                    | null;
                    note: string;
                    payment_options: (
                        | {
                            href: string
                            | null;
                            name: string | null;
                            object_id: string | null;
                            type: "link";
                        }
                        | {
                            amount_min: number
                            | null;
                            chain_id: string | null;
                            object_id: string | null;
                            price: number | null;
                            type: "monero-subscription";
                        }
                    )[];
                    permit_followback?: boolean;
                    pronouns: string[];
                    relationship?: {
                        blocked_by: boolean;
                        blocking: boolean;
                        domain_blocking: boolean;
                        endorsed: boolean;
                        followed_by: boolean;
                        following: boolean;
                        id: string;
                        languages: string[]
                        | null;
                        muting: boolean;
                        muting_notifications: boolean;
                        note: string;
                        notifying: boolean;
                        requested: boolean;
                        showing_reblogs: boolean;
                    };
                    roles: {
                        color: string;
                        highlighted: boolean;
                        id: string;
                        name: string;
                        permissions: string;
                    }[];
                    speak_as_cat: boolean;
                    statuses_count: number;
                    subscribers_count: number;
                    suspended?: boolean;
                    url: string;
                    username: string;
                    verified?: boolean;
                } & WithMoved;
                id: string;
                last_message: | {
                    account_id: string;
                    attachment: | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            focus?: { x: ...; y: ... };
                            original?: { aspect: ...; height: ...; size: ...; width: ... };
                            small?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "image";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            original?: {
                                aspect: ...;
                                duration: ...;
                                frame_rate: ...;
                                height: ...;
                                size: ...;
                                width: ...;
                            };
                            small?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "video";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            focus?: { x: ...; y: ... };
                            original?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "gifv";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            colors?: {
                                accent?: ...;
                                background?: ...;
                                duration?: ...;
                                foreground?: ...;
                            };
                            duration?: number;
                            original?: { bitrate?: ...; duration?: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "audio";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        mime_type: string | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "unknown";
                        url: string;
                    }
                    | null;
                    card: | {
                        author_name: string;
                        author_url: string;
                        authors: { account: (...)
                        | (...); name: string; url: string }[];
                        blurhash: string | null;
                        description: string;
                        embed_url: string;
                        height: number;
                        html: string;
                        image: string | null;
                        image_description: string;
                        provider_name: string;
                        provider_url: string;
                        title: string;
                        type: "link" | "video" | "photo" | "rich";
                        url: string;
                        width: number;
                    }
                    | null;
                    chat_id: string;
                    content: string;
                    created_at: string;
                    emojis: {
                        category: string
                        | null;
                        shortcode: string;
                        static_url: string;
                        url: string;
                        visible_in_picker: boolean;
                    }[];
                    id: string;
                    unread: boolean;
                }
                | null;
                unread: number;
                updated_at: string;
            },
        >

        Marking a chat as read mark a number of messages in a chat up to a certain message as read

      • markChatMessageAsRead: (
            chatId: string,
            chatMessageId: string,
        ) => Promise<
            {
                account: {
                    __meta: { pleroma?: any; source?: any };
                    accepts_chat_messages: boolean | null;
                    acct: string;
                    ap_id: string | null;
                    avatar: string;
                    avatar_default: boolean;
                    avatar_description: string;
                    avatar_static: string;
                    background_image: string | null;
                    birthday?: string;
                    bot: boolean;
                    created_at: string;
                    custom_css: string;
                    deactivated?: boolean;
                    discoverable: boolean;
                    display_name: string;
                    domain: string;
                    emojis: {
                        category: string | null;
                        shortcode: string;
                        static_url: string;
                        url: string;
                        visible_in_picker: boolean;
                    }[];
                    enable_rss: boolean;
                    favicon?: string;
                    fields: { name: string; value: string; verified_at: string
                    | null }[];
                    followers_count: number;
                    following_count: number;
                    fqn: string;
                    group: boolean;
                    header: string;
                    header_default: boolean;
                    header_description: string;
                    header_static: string;
                    hide_collections?: boolean;
                    hide_favorites: boolean;
                    hide_followers?: boolean;
                    hide_followers_count?: boolean;
                    hide_follows?: boolean;
                    hide_follows_count?: boolean;
                    id: string;
                    identity_proofs: { name: string; value: string; verified_at: string }[];
                    indexable: boolean | null;
                    is_admin?: boolean;
                    is_cat: boolean;
                    is_moderator?: boolean;
                    is_suggested?: boolean;
                    last_status_at: string | null;
                    limited?: boolean;
                    local?: boolean;
                    location?: string;
                    locked: boolean;
                    memorial: boolean | null;
                    mention_policy: "none" | "only_known" | "only_contacts";
                    moved:
                        | {
                            __meta: { pleroma?: any; source?: any };
                            accepts_chat_messages: boolean | null;
                            acct: string;
                            ap_id: string | null;
                            avatar: string;
                            avatar_default: boolean;
                            avatar_description: string;
                            avatar_static: string;
                            background_image: string | null;
                            birthday?: string;
                            bot: boolean;
                            created_at: string;
                            custom_css: string;
                            deactivated?: boolean;
                            discoverable: boolean;
                            display_name: string;
                            domain: string;
                            emojis: {
                                category: (...) | (...);
                                shortcode: string;
                                static_url: string;
                                url: string;
                                visible_in_picker: boolean;
                            }[];
                            enable_rss: boolean;
                            favicon?: string;
                            fields: { name: string; value: string; verified_at: (...)
                            | (...) }[];
                            followers_count: number;
                            following_count: number;
                            fqn: string;
                            group: boolean;
                            header: string;
                            header_default: boolean;
                            header_description: string;
                            header_static: string;
                            hide_collections?: boolean;
                            hide_favorites: boolean;
                            hide_followers?: boolean;
                            hide_followers_count?: boolean;
                            hide_follows?: boolean;
                            hide_follows_count?: boolean;
                            id: string;
                            identity_proofs: { name: string; value: string; verified_at: string }[];
                            indexable: boolean | null;
                            is_admin?: boolean;
                            is_cat: boolean;
                            is_moderator?: boolean;
                            is_suggested?: boolean;
                            last_status_at: string | null;
                            limited?: boolean;
                            local?: boolean;
                            location?: string;
                            locked: boolean;
                            memorial: boolean | null;
                            mention_policy: "none" | "only_known" | "only_contacts";
                            noindex: boolean | null;
                            note: string;
                            payment_options: (
                                | { href: ...; name: ...; object_id: ...; type: ... }
                                | {
                                    amount_min: ...;
                                    chain_id: ...;
                                    object_id: ...;
                                    price: ...;
                                    type: ...;
                                }
                            )[];
                            permit_followback?: boolean;
                            pronouns: string[];
                            relationship?: {
                                blocked_by: boolean;
                                blocking: boolean;
                                domain_blocking: boolean;
                                endorsed: boolean;
                                followed_by: boolean;
                                following: boolean;
                                id: string;
                                languages: (...)
                                | (...);
                                muting: boolean;
                                muting_notifications: boolean;
                                note: string;
                                notifying: boolean;
                                requested: boolean;
                                showing_reblogs: boolean;
                            };
                            roles: {
                                color: string;
                                highlighted: boolean;
                                id: string;
                                name: string;
                                permissions: string;
                            }[];
                            speak_as_cat: boolean;
                            statuses_count: number;
                            subscribers_count: number;
                            suspended?: boolean;
                            url: string;
                            username: string;
                            verified?: boolean;
                        }
                        | null;
                    noindex: boolean
                    | null;
                    note: string;
                    payment_options: (
                        | {
                            href: string
                            | null;
                            name: string | null;
                            object_id: string | null;
                            type: "link";
                        }
                        | {
                            amount_min: number
                            | null;
                            chain_id: string | null;
                            object_id: string | null;
                            price: number | null;
                            type: "monero-subscription";
                        }
                    )[];
                    permit_followback?: boolean;
                    pronouns: string[];
                    relationship?: {
                        blocked_by: boolean;
                        blocking: boolean;
                        domain_blocking: boolean;
                        endorsed: boolean;
                        followed_by: boolean;
                        following: boolean;
                        id: string;
                        languages: string[]
                        | null;
                        muting: boolean;
                        muting_notifications: boolean;
                        note: string;
                        notifying: boolean;
                        requested: boolean;
                        showing_reblogs: boolean;
                    };
                    roles: {
                        color: string;
                        highlighted: boolean;
                        id: string;
                        name: string;
                        permissions: string;
                    }[];
                    speak_as_cat: boolean;
                    statuses_count: number;
                    subscribers_count: number;
                    suspended?: boolean;
                    url: string;
                    username: string;
                    verified?: boolean;
                } & WithMoved;
                id: string;
                last_message: | {
                    account_id: string;
                    attachment: | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            focus?: { x: ...; y: ... };
                            original?: { aspect: ...; height: ...; size: ...; width: ... };
                            small?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "image";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            original?: {
                                aspect: ...;
                                duration: ...;
                                frame_rate: ...;
                                height: ...;
                                size: ...;
                                width: ...;
                            };
                            small?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "video";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            duration?: number;
                            focus?: { x: ...; y: ... };
                            original?: { aspect: ...; height: ...; size: ...; width: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "gifv";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        meta: {
                            colors?: {
                                accent?: ...;
                                background?: ...;
                                duration?: ...;
                                foreground?: ...;
                            };
                            duration?: number;
                            original?: { bitrate?: ...; duration?: ... };
                        };
                        mime_type: string
                        | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "audio";
                        url: string;
                    }
                    | {
                        blurhash: string
                        | null;
                        description: string;
                        id: string;
                        mime_type: string | null;
                        preview_url: string;
                        remote_url: string | null;
                        type: "unknown";
                        url: string;
                    }
                    | null;
                    card: | {
                        author_name: string;
                        author_url: string;
                        authors: { account: (...)
                        | (...); name: string; url: string }[];
                        blurhash: string | null;
                        description: string;
                        embed_url: string;
                        height: number;
                        html: string;
                        image: string | null;
                        image_description: string;
                        provider_name: string;
                        provider_url: string;
                        title: string;
                        type: "link" | "video" | "photo" | "rich";
                        url: string;
                        width: number;
                    }
                    | null;
                    chat_id: string;
                    content: string;
                    created_at: string;
                    emojis: {
                        category: string
                        | null;
                        shortcode: string;
                        static_url: string;
                        url: string;
                        visible_in_picker: boolean;
                    }[];
                    id: string;
                    unread: boolean;
                }
                | null;
                unread: number;
                updated_at: string;
            },
        >

        Marking a single chat message as read To set the unread property of a message to false https://docs.pleroma.social/backend/development/API/chats/#marking-a-single-chat-message-as-read