feat: client ensurePeered API, connection flow swap, WS event handlers for peer rejection
This commit is contained in:
@@ -224,6 +224,7 @@ export class BackspaceApiClient {
|
||||
|
||||
readonly federation: {
|
||||
initiatePeering: (data: { remoteOrigin: string }) => Promise<{ peer: FederationPeer }>;
|
||||
ensurePeered: (data: { remoteOrigin: string }) => Promise<{ peeringStatus: string; peerId?: string; error?: string }>;
|
||||
peers: () => Promise<{ peers: FederationPeer[] }>;
|
||||
revokePeer: (id: string) => Promise<{ success: boolean }>;
|
||||
rotatePeerSecret: (id: string) => Promise<{ success: boolean; gracePeriodMs: number }>;
|
||||
@@ -666,6 +667,10 @@ export class BackspaceApiClient {
|
||||
request<{ peer: FederationPeer }>(
|
||||
'POST', '/federation/peer/initiate', data
|
||||
),
|
||||
ensurePeered: (data: { remoteOrigin: string }) =>
|
||||
request<{ peeringStatus: string; peerId?: string; error?: string }>(
|
||||
'POST', '/federation/peer/ensure', data
|
||||
),
|
||||
peers: () =>
|
||||
request<{ peers: FederationPeer[] }>(
|
||||
'GET', '/federation/peers'
|
||||
|
||||
Reference in New Issue
Block a user