workos 1.0.0

Official Rust SDK for the WorkOS API
Documentation
// Code 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 CreateOAuthApplication {
    /// The name of the application.
    pub name: String,
    /// The type of application to create.
    pub application_type: String,
    /// A description for the application.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub description: Option<String>,
    /// The OAuth scopes granted to the application.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub scopes: Option<Vec<String>>,
    /// Redirect URIs for the application.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub redirect_uris: Option<Vec<RedirectUriInput>>,
    /// Whether the application uses PKCE (Proof Key for Code Exchange).
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub uses_pkce: Option<bool>,
    /// Whether this is a first-party application. Third-party applications require an organization_id.
    pub is_first_party: bool,
    /// The organization ID this application belongs to. Required when is_first_party is false.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub organization_id: Option<String>,
}