HfHub.Webhooks.WebhookInfo (HfHub v0.2.0)

Copy Markdown View Source

Represents a webhook configuration on HuggingFace Hub.

Webhooks enable automated notifications when events occur on repositories.

Summary

Functions

Creates a WebhookInfo from API response.

Types

t()

@type t() :: %HfHub.Webhooks.WebhookInfo{
  created_at: DateTime.t() | nil,
  disabled: boolean(),
  domains: [:repo | :discussion],
  id: String.t(),
  secret: String.t() | nil,
  url: String.t(),
  watched: [HfHub.Webhooks.WatchedItem.t()]
}

Functions

from_response(response)

@spec from_response(map()) :: t()

Creates a WebhookInfo from API response.