feat: WIP
This commit is contained in:
36
definitions/automation:devices.lua
Normal file
36
definitions/automation:devices.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
---@meta
|
||||
|
||||
local devices
|
||||
|
||||
---@class Ntfy
|
||||
local Ntfy
|
||||
---@async
|
||||
---@param notification Notification
|
||||
function Ntfy:send_notification(notification) end
|
||||
|
||||
---@alias Priority
|
||||
---| "min"
|
||||
---| "low"
|
||||
---| "default"
|
||||
---| "high"
|
||||
---| "max"
|
||||
|
||||
---@class Notification
|
||||
---@field title string
|
||||
---@field message string?
|
||||
---@field tags string[]?
|
||||
---@field priority Priority?
|
||||
---@field actions Action[]?
|
||||
|
||||
---@class NtfyConfig
|
||||
---@field url string
|
||||
---@field topic string
|
||||
|
||||
---@class Action
|
||||
---@field action
|
||||
---| "broadcast"
|
||||
---@field extras table<string, string>?
|
||||
---@field label string
|
||||
---@field clear boolean?
|
||||
|
||||
return devices
|
||||
Reference in New Issue
Block a user