# `Hunter.WebPushSubscription`
[🔗](https://github.com/milmazz/hunter/blob/v0.8.0/lib/hunter/web_push_subscription.ex#L1)

WebPushSubscription entity

A subscription to the Web Push API

## Fields

  * `id` - the ID of the Web Push subscription in the database
  * `endpoint` - where push alerts will be sent to
  * `standard` - whether the subscription uses standardized web push
    (RFC 8030, 8291 and 8292) or legacy web push drafts
  * `server_key` - the streaming server's VAPID key
  * `alerts` - map of notification types to booleans, which alerts should
    be delivered to the endpoint (`mention`, `status`, `reblog`, `follow`,
    `follow_request`, `favourite`, `poll`, `update`, `admin.sign_up`,
    `admin.report`)

# `t`

```elixir
@type t() :: %Hunter.WebPushSubscription{
  alerts: map(),
  endpoint: String.t(),
  id: String.t(),
  server_key: String.t(),
  standard: boolean()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
