Add relay activity

This commit is contained in:
Jon Staab
2026-03-27 15:24:08 -07:00
parent 6510bc0d85
commit 77365f74ee
10 changed files with 152 additions and 6 deletions
+13
View File
@@ -115,6 +115,15 @@ export type Invoice = {
period_end: number
}
export type Activity = {
id: string
tenant: string
created_at: number
activity_type: string
resource_type: string
resource_id: string
}
export type Identity = {
pubkey: string
is_admin: boolean
@@ -229,6 +238,10 @@ export function getRelay(id: string) {
return callApi<undefined, Relay>("GET", `/relays/${id}`)
}
export function listRelayActivity(id: string) {
return callApi<undefined, Activity[]>("GET", `/relays/${id}/activity`)
}
export function createRelay(input: CreateRelayInput) {
return callApi<CreateRelayInput, Relay>("POST", "/relays", input)
}