File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
import * as ACCOUNT from 'types/generated/lit-accounts_pb' ;
2
2
import * as SESSION from 'types/generated/lit-sessions_pb' ;
3
+ import * as STATUS from 'types/generated/lit-status_pb' ;
3
4
import { Accounts } from 'types/generated/lit-accounts_pb_service' ;
4
5
import { Sessions } from 'types/generated/lit-sessions_pb_service' ;
6
+ import { Status } from 'types/generated/lit-status_pb_service' ;
5
7
import { b64 } from 'util/strings' ;
6
8
import { MAX_DATE } from 'util/constants' ;
7
9
import BaseApi from './base' ;
@@ -84,6 +86,12 @@ class LitApi extends BaseApi<LitEvents> {
84
86
const res = await this . _grpc . request ( Sessions . RevokeSession , req , this . _meta ) ;
85
87
return res . toObject ( ) ;
86
88
}
89
+
90
+ async listSubServerStatus ( ) : Promise < STATUS . SubServerStatusResp . AsObject > {
91
+ const req = new STATUS . SubServerStatusReq ( ) ;
92
+ const res = await this . _grpc . request ( Status . SubServerStatus , req , this . _meta ) ;
93
+ return res . toObject ( ) ;
94
+ }
87
95
}
88
96
89
97
export default LitApi ;
You can’t perform that action at this time.
0 commit comments