Module template

Module template 

Source
Expand description

BOS session template queries and BOS session creation with access validation.

BOS session creation runs a two-step validate_and_prepare_template_session + create_bos_session flow so authorization (which fans across template targets and the limit argument) is separate from the actual post_template_session call. The split also keeps each side individually unit-testable.

Structs§

ApplyTemplateParams
Parameters for applying a BOS session template.
GetTemplateParams
Typed parameters for fetching BOS session templates.

Functions§

create_bos_session
Submit a [BosSession] previously built by validate_and_prepare_template_session.
get_templates
List BOS session templates visible to the caller.
validate_and_prepare_template_session
Build the [BosSession] that create_bos_session will submit, after validating every xname/group the operation will touch.