class

StableMPC::Store

Inherits Reference < Object

Constructors

new(path : String, master_password : String | Nil = nil)
Source

Instance methods

add_server(server : NewServer) : Int64
Source
authenticate_local_client(server_id : Int64, token : String) : Int64 | Nil
Source
bearer_token(id : Int64) : String | Nil
Source
change_master_password(current_password : String, new_password : String)
Source
client_secret(id : Int64) : String | Nil
Source
close
Source
local_clients(server_id : Int64) : Array(LocalClient)
Source
lock
Source
locked?
Source
oauth_credentials(server_id : Int64) : OAuthCredentials | Nil
Source
path
Source
proxy_token(id : Int64) : String
Source
record_tool_call(server_id : Int64, name : String)
Source
rotate_local_client_token(server_id : Int64, client_id : Int64)
Source
save_connection(server_id : Int64, details : ConnectionDetails)
Source
save_connection_error(server_id : Int64, message : String)
Source
save_oauth_configuration(server_id : Int64, client_id : String, client_secret : String | Nil, token_auth_method : String, authorization_endpoint : String, token_endpoint : String, resource : String, scope : String | Nil, registration_access_token : String | Nil = nil, registration_client_uri : String | Nil = nil)
Source
save_oauth_health(server_id : Int64, state : String, error : String | Nil = nil)
Source
save_oauth_refresh_state(server_id : Int64, state : String)
Source
save_oauth_tokens(server_id : Int64, tokens : OAuthTokenSet, retain_refresh_token = false)
Source
server(id : Int64) : Server | Nil
Source
server_by_slug(slug : String) : Server | Nil
Source
servers
Source
set_tool_allowed(server_id : Int64, name : String, allowed : Bool)
Source
set_tools_allowed(server_id : Int64, names : Array(String), allowed : Bool)
Source
tool_allowed?(server_id : Int64, name : String) : Bool
Source
tools(server_id : Int64, allowed_only = false) : Array(Tool)
Source
unlock(password : String)
Source
update_server(id : Int64, updated : NewServer) : Bool
Source
vault_configured?
Source