HfHub.Webhooks.WatchedItem (HfHub v0.2.0)

Copy Markdown View Source

Represents a watched item in a webhook configuration.

A watched item specifies a repository or entity to monitor for events.

Summary

Functions

Creates a WatchedItem from API response.

Types

item_type()

@type item_type() :: :model | :dataset | :space | :user | :org

t()

@type t() :: %HfHub.Webhooks.WatchedItem{name: String.t(), type: item_type()}

Functions

from_response(response)

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

Creates a WatchedItem from API response.