1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.ApiSpec.Schemas.PushSubscription do
6 alias OpenApiSpex.Schema
11 title: "PushSubscription",
12 description: "Response schema for a push subscription",
16 anyOf: [%Schema{type: :string}, %Schema{type: :integer}],
17 description: "The id of the push subscription in the database."
19 endpoint: %Schema{type: :string, description: "Where push alerts will be sent to."},
20 server_key: %Schema{type: :string, description: "The streaming server's VAPID key."},
23 description: "Which alerts should be delivered to the endpoint.",
27 description: "Receive a push notification when someone has followed you?"
32 "Receive a push notification when a status you created has been favourited by someone else?"
37 "Receive a push notification when a status you created has been boosted by someone else?"
42 "Receive a push notification when someone else has mentioned you in a status?"
47 "Receive a push notification when a poll you voted in or created has ended? "
54 "endpoint" => "https://yourdomain.example/listener",
63 "BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M="