workos 3.1.0

Official Rust SDK for the WorkOS API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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>,
}