Add identity endpoint
This commit is contained in:
@@ -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}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user