// Code generated by oagen. DO NOT EDIT.
#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// The event payload.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ApiKeyRevokedData {
/// Distinguishes the API key object.
pub object: String,
/// Unique identifier of the API key.
pub id: String,
/// The owner of the API key.
pub owner: ApiKeyRevokedDataOwnerOneOf,
/// The name of the API key.
pub name: String,
/// The obfuscated value of the API key.
pub obfuscated_value: String,
/// The timestamp when the API key was last used.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub last_used_at: Option<String>,
/// The permissions granted to the API key.
pub permissions: Vec<String>,
/// The timestamp when the API key was created.
pub created_at: String,
/// The timestamp when the API key was last updated.
pub updated_at: String,
}