workos 3.4.1

Official Rust SDK for the WorkOS API
Documentation
// 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 AgentTokenValidation {
    /// Always `true`: an invalid token is reported as an error with a stable code, never as a `200`.
    pub valid: bool,
    /// The agent instance the token was minted for.
    pub agent_instance_id: String,
    /// The agent instance session backing the token.
    pub agent_instance_session_id: String,
    /// The organization the agent acts within.
    pub organization_id: String,
    /// The effective permission slugs carried by the token.
    pub permissions: Vec<String>,
    /// The caller-supplied context echoed into the token at mint time, or `null` when none was given.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub intent: Option<String>,
    /// The delegating user carried in the `act.sub` claim of the token, or `null` for autonomous sessions.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub acting_user_id: Option<String>,
    /// When the backing agent instance session expires.
    pub session_expires_at: String,
}