LemonCore.ExecApprovalStore (lemon_core v0.1.0)

View Source

Typed wrapper for execution approval policy and pending-request tables.

Summary

Functions

delete_pending(approval_id)

@spec delete_pending(binary()) :: :ok

get_agent_policy(agent_id, tool, action_hash)

@spec get_agent_policy(binary(), term(), term()) :: map() | nil

get_global_policy(tool, action_hash)

@spec get_global_policy(term(), term()) :: map() | nil

get_global_policy_map()

@spec get_global_policy_map() :: map() | nil

get_node_policy(node_id, tool, action_hash)

@spec get_node_policy(binary(), term(), term()) :: map() | nil

get_node_policy_map(node_id)

@spec get_node_policy_map(binary()) :: map() | nil

get_pending(approval_id)

@spec get_pending(binary()) :: map() | nil

get_session_policy(session_key, tool, action_hash)

@spec get_session_policy(binary(), term(), term()) :: map() | nil

list_agent_policies()

@spec list_agent_policies() :: list()

list_global_policies()

@spec list_global_policies() :: list()

list_node_policies()

@spec list_node_policies() :: list()

list_pending()

@spec list_pending() :: list()

list_session_policies()

@spec list_session_policies() :: list()

put_agent_policy(agent_id, tool, action_hash, value)

@spec put_agent_policy(binary(), term(), term(), map()) :: :ok

put_global_policy(tool, action_hash, value)

@spec put_global_policy(term(), term(), map()) :: :ok

put_global_policy_map(value)

@spec put_global_policy_map(map()) :: :ok

put_node_policy(node_id, tool, action_hash, value)

@spec put_node_policy(binary(), term(), term(), map()) :: :ok

put_node_policy_map(node_id, value)

@spec put_node_policy_map(binary(), map()) :: :ok

put_pending(approval_id, value)

@spec put_pending(binary(), map()) :: :ok

put_session_policy(session_key, tool, action_hash, value)

@spec put_session_policy(binary(), term(), term(), map()) :: :ok