Skip to content

Commit 2bb11b2

Browse files
committed
Add SessionCounts struct for use in policy
1 parent e6bef71 commit 2bb11b2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/policy/src/model.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,16 @@ pub struct AuthorizationGrantInput<'a> {
179179
pub requester: Requester,
180180
}
181181

182+
/// Information about how many sessions the user has
183+
#[derive(Serialize, Debug, JsonSchema)]
184+
pub struct SessionCounts {
185+
pub total: u64,
186+
187+
pub oauth2: u64,
188+
pub compat: u64,
189+
pub personal: u64,
190+
}
191+
182192
/// Input for the email add policy.
183193
#[derive(Serialize, Debug, JsonSchema)]
184194
#[serde(rename_all = "snake_case")]

0 commit comments

Comments
 (0)