Handle expired agreements and rewrite README

- Implement robust End User Agreement expiry detection and handling
- Add graceful error recovery for failed accounts
- Rewrite README.md to focus on user benefits
- Add documentation guidelines to AGENTS.md
This commit is contained in:
2025-11-21 17:04:31 +01:00
parent aeb8e9bdcb
commit 0b2549ddb4
13 changed files with 362 additions and 183 deletions

View File

@@ -14,6 +14,16 @@ pub struct Requisition {
pub status: String,
pub accounts: Option<Vec<String>>,
pub reference: Option<String>,
pub agreement: Option<String>, // EUA ID associated with this requisition
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct EndUserAgreement {
pub id: String,
pub created: Option<String>,
pub accepted: Option<String>, // When user accepted the agreement
pub access_valid_for_days: Option<i32>, // Validity period (default 90)
pub institution_id: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]