Update/040 types (#2845)

* small type changes and clear todos

* handle notifications and metrics

* wip

* fixes

* migration

* dedup all urls

* better handling of clearnet ips

* add rfkill dependency

---------

Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
Aiden McClelland
2025-03-06 20:36:19 -07:00
committed by GitHub
parent ac392dcb96
commit e830fade06
63 changed files with 800 additions and 480 deletions

View File

@@ -245,7 +245,6 @@ export class LiveApiService extends ApiService {
async followServerMetrics(
params: RR.FollowServerMetricsReq,
): Promise<RR.FollowServerMetricsRes> {
// @TODO 040 implement .follow
return this.rpcRequest({ method: 'server.metrics.follow', params })
}
@@ -350,8 +349,8 @@ export class LiveApiService extends ApiService {
}
async deleteNotifications(
params: RR.DeleteNotificationReq,
): Promise<RR.DeleteNotificationRes> {
params: RR.DeleteNotificationsReq,
): Promise<RR.DeleteNotificationsRes> {
return this.rpcRequest({ method: 'notification.remove', params })
}
@@ -422,7 +421,7 @@ export class LiveApiService extends ApiService {
// wifi
async enableWifi(params: RR.EnableWifiReq): Promise<RR.EnableWifiRes> {
async enableWifi(params: RR.EnabledWifiReq): Promise<RR.EnabledWifiRes> {
return this.rpcRequest({ method: 'wifi.enable', params })
}
@@ -433,6 +432,12 @@ export class LiveApiService extends ApiService {
return this.rpcRequest({ method: 'wifi.get', params, timeout })
}
async setWifiCountry(
params: RR.SetWifiCountryReq,
): Promise<RR.SetWifiCountryRes> {
return this.rpcRequest({ method: 'wifi.country.set', params })
}
async addWifi(params: RR.AddWifiReq): Promise<RR.AddWifiRes> {
return this.rpcRequest({ method: 'wifi.add', params })
}