Packages

Webhook delivery, monitoring, and management API. All endpoints under `/v1` require authentication via `Authorization: Bearer <api_key>` header unless marked as **Public**.

Current section

Files

Jump to
hooksniff lib hook_sniff_api model notification_preferences.ex
Raw

lib/hook_sniff_api/model/notification_preferences.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.22.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule HookSniffAPI.Model.NotificationPreferences do
@moduledoc """
"""
@derive Jason.Encoder
defstruct [
:email_on_failure,
:email_on_dead_letter,
:email_on_success,
:slack_webhook_url,
:discord_webhook_url,
:webhook_url
]
@type t :: %__MODULE__{
:email_on_failure => boolean() | nil,
:email_on_dead_letter => boolean() | nil,
:email_on_success => boolean() | nil,
:slack_webhook_url => String.t | nil,
:discord_webhook_url => String.t | nil,
:webhook_url => String.t | nil
}
def decode(value) do
value
end
end