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.ChatMessageResponse do
6 alias OpenApiSpex.Schema
11 title: "ChatMessageResponse",
12 description: "Response schema for a ChatMessage",
15 id: %Schema{type: :string},
16 actor: %Schema{type: :string, description: "The ActivityPub id of the actor"},
17 actor_account_id: %Schema{type: :string, description: "The Mastodon API id of the actor"},
18 chat_id: %Schema{type: :string},
19 content: %Schema{type: :string},
20 created_at: %Schema{type: :string, format: :datetime},
21 emojis: %Schema{type: :array}
24 "actor" => "https://dontbulling.me/users/lain",
25 "actor_account_id" => "someflakeid",
27 "content" => "hey you again",
28 "created_at" => "2020-04-21T15:06:45.000Z",
31 "static_url" => "https://dontbulling.me/emoji/Firefox.gif",
32 "visible_in_picker" => false,
33 "shortcode" => "firefox",
34 "url" => "https://dontbulling.me/emoji/Firefox.gif"