pub async fn get_templates(
infra: &InfraContext<'_>,
token: &str,
params: &GetTemplateParams,
) -> Result<Vec<BosSessionTemplate>, Error>Expand description
List BOS session templates visible to the caller.
When params.group_name is unset the lookup spans every HSM
group the token already grants access to. The backend filters
templates whose targets intersect the resolved group set (and
their member xnames), so the response stays scoped to what the
caller could see by other means. Results are sorted by template
name for stable output.