bitwarden_pam/access_requests/mod.rs
1//! PAM access request operations.
2//!
3//! An *access request* is a member's ask to open a PAM-gated cipher. A requester
4//! [`pre_check`](AccessRequestsClient::pre_check)s a cipher to learn whether a request would be
5//! auto-approved, then [`request`](AccessRequestsClient::request)s access. On the automatic (no
6//! human approval) path the server auto-approves it, and the requester
7//! [`activate`](AccessRequestsClient::activate)s the approved request to mint a short-lived
8//! [`AccessLease`](crate::AccessLeaseView) over the cipher.
9//!
10//! [`AccessRequestsClient`] is obtained from the [`PamClient`](crate::PamClient) and covers
11//! per-cipher access-state reads, opening a request, listing/reading the caller's requests,
12//! activating an approved one, and cancelling a pending one.
13
14mod client;
15mod models;
16
17pub use client::AccessRequestsClient;
18pub use models::{
19 AccessApprovalMode, AccessApprover, AccessDecider, AccessDecisionVerdict, AccessPreCheckView,
20 AccessRequestCreateRequest, AccessRequestDecisionView, AccessRequestResultView,
21 AccessRequestStatus, AccessRequestSummaryView, AccessRequestView, CipherAccessStateView,
22};