@@ -32,6 +32,8 @@ export type MultichainApiClient<T extends RpcApi = DefaultRpcApi> = {
3232 /**
3333 * Revokes the current session and disconnects from the wallet
3434 *
35+ * @param params - Session revoke parameters
36+ * @param params.sessionScopes - Scopes that may be passed to partially revoke permission granted by the wallet
3537 * @returns A promise that resolves when the session is revoked
3638 */
3739 revokeSession : MultichainApi < T > [ 'wallet_revokeSession' ] ;
@@ -68,7 +70,7 @@ export type MultichainApiClient<T extends RpcApi = DefaultRpcApi> = {
6870export type MultichainApi < T extends RpcApi > = {
6971 wallet_createSession : RpcMethod < CreateSessionParams < T > , SessionData > ;
7072 wallet_getSession : RpcMethod < void , SessionData | undefined > ;
71- wallet_revokeSession : RpcMethod < void , void > ;
73+ wallet_revokeSession : RpcMethod < RevokeSessionParams < T > , void > ;
7274 wallet_invokeMethod : < S extends Scope < T > , M extends MethodName < T , S > > (
7375 params : InvokeMethodParams < T , S , M > ,
7476 ) => MethodReturn < T , S , M > ;
@@ -81,6 +83,11 @@ export type CreateSessionParams<T extends RpcApi> = {
8183 sessionProperties ?: SessionProperties ;
8284} ;
8385
86+ // wallet_revokeSession params
87+ export type RevokeSessionParams < T extends RpcApi > = {
88+ sessionScopes ?: Scope < T > [ ] ;
89+ } ;
90+
8491// wallet_invokeMethod params
8592export type InvokeMethodParams < T extends RpcApi , S extends Scope < T > , M extends MethodName < T , S > > = {
8693 scope : S ;
0 commit comments