add creation date to admin api tokens

This commit is contained in:
Alex Auvolat
2025-03-12 09:52:39 +01:00
parent 325f79012c
commit 88b4623bf1
5 changed files with 37 additions and 8 deletions
+2
View File
@@ -314,6 +314,8 @@ pub struct GetAdminTokenInfoRequest {
pub struct GetAdminTokenInfoResponse {
/// Identifier of the admin token (which is also a prefix of the full bearer token)
pub id: Option<String>,
/// Creation date
pub created: Option<chrono::DateTime<chrono::Utc>>,
/// Name of the admin API token
pub name: String,
/// Expiration time and date, formatted according to RFC 3339