Add identity endpoint

This commit is contained in:
Jon Staab
2026-03-26 16:10:24 -07:00
parent 9da5e027a7
commit a2f9ca9688
9 changed files with 129 additions and 38 deletions
+10
View File
@@ -71,6 +71,12 @@ export type Invoice = {
period_end: number
}
export type Identity = {
pubkey: string
is_admin: boolean
is_tenant: boolean
}
export type CreateRelayInput = {
tenant?: string
subdomain: string
@@ -168,6 +174,10 @@ export function listPlans() {
return callApi<undefined, Plan[]>("GET", "/plans")
}
export function getIdentity() {
return callApi<undefined, Identity>("GET", "/identity")
}
export function getPlan(id: string) {
return callApi<undefined, Plan>("GET", `/plans/${id}`)
}