// This file is auto-generated by oagen. Do not edit.
#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AgentAdminValidateCredentialRequest {
/// The kind of credential being validated — an agent API key or an agent access token.
#[serde(rename = "type")]
pub type_: AgentAdminValidateCredentialRequestType,
/// The credential value to validate: the API key value for `api_key`, or the access token (JWT) for `access_token`.
pub credential: String,
/// When provided, the access token's `aud` claim is verified against this value. Tokens issued for a different resource are rejected.
#[serde(skip_serializing_if = "Option::is_none", default)]
pub audience: Option<String>,
}