1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.ApiSpec.Schemas.Chat do
6 alias OpenApiSpex.Schema
12 description: "Response schema for a Chat",
15 id: %Schema{type: :string, nullable: false},
16 account: %Schema{type: :object, nullable: false},
17 unread: %Schema{type: :integer, nullable: false}
23 "confirmation_pending" => false,
24 "hide_followers_count" => false,
25 "is_moderator" => false,
26 "hide_favorites" => true,
27 "ap_id" => "https://dontbulling.me/users/lain",
28 "hide_follows_count" => false,
29 "hide_follows" => false,
30 "background_image" => nil,
31 "skip_thread_containment" => false,
32 "hide_followers" => false,
33 "relationship" => %{},
37 "https://dontbulling.me/media/065a4dd3c6740dab13ff9c71ec7d240bb9f8be9205c9e7467fb2202117da1e32.jpg",
38 "following_count" => 0,
39 "header_static" => "https://originalpatchou.li/images/banner.png",
44 "discoverable" => false,
45 "actor_type" => "Person"
49 "statuses_count" => 1,
51 "created_at" => "2020-04-16T13:40:15.000Z",
52 "display_name" => "lain",
54 "acct" => "lain@dontbulling.me",
55 "id" => "9u6Qw6TAZANpqokMkK",
58 "https://dontbulling.me/media/065a4dd3c6740dab13ff9c71ec7d240bb9f8be9205c9e7467fb2202117da1e32.jpg",
60 "followers_count" => 0,
61 "header" => "https://originalpatchou.li/images/banner.png",
64 "url" => "https://dontbulling.me/users/lain"