// @generated by jacquard-lexicon. DO NOT EDIT.
//
// Lexicon: app.ocho.plugin.defs
//
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.

//! Generated bindings for the `app.ocho.plugin` Lexicon namespace/module.
pub mod get_launch_asset;
pub mod get_manifest;
pub mod put_hosting_url;
pub mod service;


#[allow(unused_imports)]
use alloc::collections::BTreeMap;

#[allow(unused_imports)]
use core::marker::PhantomData;
use jacquard_common::{CowStr, BosStr, DefaultStr, FromStaticStr};

#[allow(unused_imports)]
use jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation;
use jacquard_common::deps::smol_str::SmolStr;
use jacquard_common::types::blob::BlobRef;
use jacquard_common::types::string::{Datetime, UriValue};
use jacquard_common::types::value::Data;
use jacquard_derive::{IntoStatic, open_union};
use jacquard_lexicon::lexicon::LexiconDoc;
use jacquard_lexicon::schema::LexiconSchema;

#[allow(unused_imports)]
use jacquard_lexicon::validation::{ConstraintError, ValidationPath};
use serde::{Serialize, Deserialize};
use crate::app_ocho::plugin;

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct AdaptiveIcon<S: BosStr = DefaultStr> {
    ///The background color of the adaptive icon.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub background_color: Option<S>,
    ///The URL to the foreground image of the adaptive icon.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub foreground_image: Option<S>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub foreground_image_blob: Option<BlobRef<S>>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct Android<S: BosStr = DefaultStr> {
    ///Configuration for the adaptive icon on Android.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub adaptive_icon: Option<plugin::AdaptiveIcon<S>>,
    ///Whether edge-to-edge mode is enabled for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub edge_to_edge_enabled: Option<bool>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}

/// Android status bar configuration.

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct AndroidStatusBar<S: BosStr = DefaultStr> {
    ///The background color of the Android status bar.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub background_color: Option<S>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct Asset<S: BosStr = DefaultStr> {
    ///The blob of the asset
    pub blob: BlobRef<S>,
    ///The hash of the asset
    pub hash: S,
    ///The type of the asset
    pub r#type: S,
    ///The date and time when this asset was last updated. Used to reset the jetstream cache, among other things.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<Datetime>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct Db<S: BosStr = DefaultStr> {
    ///The ID of the database.
    pub id: S,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct Developer<S: BosStr = DefaultStr> {
    ///The tool used for development, e.g., 'expo-cli'.
    pub tool: S,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct ExpoClient<S: BosStr = DefaultStr> {
    ///Android-specific configuration for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub android: Option<plugin::Android<S>>,
    ///Configuration for the Android status bar.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub android_status_bar: Option<plugin::AndroidStatusBar<S>>,
    ///Experimental features enabled for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub expirements: Option<Data<S>>,
    ///Additional configuration for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub extra: Option<Data<S>>,
    ///The URL to the app icon.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub icon: Option<S>,
    ///ios-specific configuration for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub ios: Option<plugin::Ios<S>>,
    ///Localization settings for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub locales: Option<Data<S>>,
    ///The name of the Expo client application.
    pub name: S,
    ///Whether the new architecture is enabled for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub new_arch_enabled: Option<bool>,
    ///The default orientation of the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub orientation: Option<S>,
    ///The platforms supported by the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub platforms: Option<Vec<S>>,
    ///A list of plugins used by the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub plugins: Option<Data<S>>,
    ///The custom URI scheme for deep linking.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub scheme: Option<S>,
    ///The SDK version of the Expo client.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub sdk_version: Option<S>,
    ///A URL-friendly identifier for the app.
    pub slug: S,
    ///The default user interface style.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub user_interface_style: Option<S>,
    ///The version of the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub version: Option<S>,
    ///Web-specific configuration for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub web: Option<plugin::Web<S>>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct ExpoGo<S: BosStr = DefaultStr> {
    ///Developer-specific configuration for the Expo Go app.
    pub developer: plugin::Developer<S>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct Ios<S: BosStr = DefaultStr> {
    ///Whether the app supports iPad.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub supports_tablet: Option<bool>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct LaunchAsset<S: BosStr = DefaultStr> {
    ///The MIME type of the asset, e.g., 'image/png'.
    pub content_type: S,
    ///The unique key for this asset, used to reference it in the plugin.
    pub key: S,
    ///The URL where the asset can be accessed.
    pub url: UriValue<S>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct Manifest<S: BosStr = DefaultStr> {
    ///The date and time when this plugin manifest was created.
    pub created_at: Datetime,
    ///Additional metadata for the plugin, including Expo client and Go configurations.
    pub extra: plugin::ManifestExtra<S>,
    ///The unique identifier for this plugin manifest.
    pub id: S,
    ///The launch asset for the plugin (the main javascipt bundle).
    pub launch_asset: plugin::LaunchAsset<S>,
    pub metadata: Data<S>,
    ///The version of the Expo runtime this plugin is compatible with.
    pub runtime_version: S,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct ManifestExtra<S: BosStr = DefaultStr> {
    pub expo_client: plugin::ExpoClient<S>,
    pub expo_go: plugin::ExpoGo<S>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}


#[open_union]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(tag = "$type", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub enum PluginItem<S: BosStr = DefaultStr> {
    #[serde(rename = "app.ocho.plugin.defs#stringId")]
    StringId(Box<plugin::StringId<S>>),
    #[serde(rename = "app.ocho.plugin.defs#pluginConfig")]
    PluginConfig(Box<plugin::PluginConfig<S>>),
}

pub type Plugin<S = DefaultStr> = Vec<PluginItem<S>>;
pub type PluginConfig<S = DefaultStr> = Data<S>;
/// A string identifier for a plugin, used to reference it in the app.
pub type StringId<S = DefaultStr> = S;

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase", bound(deserialize = "S: Deserialize<'de> + BosStr"))]
pub struct Web<S: BosStr = DefaultStr> {
    ///The bundler used for the web app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub bundler: Option<S>,
    ///The URL to the favicon for the web app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub favicon: Option<S>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub favicon_blob: Option<BlobRef<S>>,
    ///The output directory for the web app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub output: Option<S>,
    #[serde(flatten, default, skip_serializing_if = "Option::is_none")]
    pub extra_data: Option<BTreeMap<SmolStr, Data<S>>>,
}

impl<S: BosStr> LexiconSchema for AdaptiveIcon<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "adaptiveIcon"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for Android<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "android"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for AndroidStatusBar<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "androidStatusBar"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for Asset<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "asset"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for Db<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "db"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for Developer<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "developer"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for ExpoClient<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "expoClient"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for ExpoGo<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "expoGo"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for Ios<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "ios"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for LaunchAsset<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "launchAsset"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for Manifest<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "manifest"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for ManifestExtra<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "manifestExtra"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

impl<S: BosStr> LexiconSchema for Web<S> {
    fn nsid() -> &'static str {
        "app.ocho.plugin.defs"
    }
    fn def_name() -> &'static str {
        "web"
    }
    fn lexicon_doc() -> LexiconDoc<'static> {
        lexicon_doc_app_ocho_plugin_defs()
    }
    fn validate(&self) -> Result<(), ConstraintError> {
        Ok(())
    }
}

fn lexicon_doc_app_ocho_plugin_defs() -> LexiconDoc<'static> {
    #[allow(unused_imports)]
    use jacquard_common::{CowStr, deps::smol_str::SmolStr, types::blob::MimeType};
    use jacquard_lexicon::lexicon::*;
    use alloc::collections::BTreeMap;
    LexiconDoc {
        lexicon: Lexicon::Lexicon1,
        id: CowStr::new_static("app.ocho.plugin.defs"),
        defs: {
            let mut map = BTreeMap::new();
            map.insert(
                SmolStr::new_static("adaptiveIcon"),
                LexUserType::Object(LexObject {
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("backgroundColor"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The background color of the adaptive icon.",
                                    ),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("foregroundImage"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The URL to the foreground image of the adaptive icon.",
                                    ),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("foregroundImageBlob"),
                            LexObjectProperty::Blob(LexBlob { ..Default::default() }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("android"),
                LexUserType::Object(LexObject {
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("adaptiveIcon"),
                            LexObjectProperty::Ref(LexRef {
                                r#ref: CowStr::new_static("#adaptiveIcon"),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("edgeToEdgeEnabled"),
                            LexObjectProperty::Boolean(LexBoolean {
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("androidStatusBar"),
                LexUserType::Object(LexObject {
                    description: Some(
                        CowStr::new_static("Android status bar configuration."),
                    ),
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("backgroundColor"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The background color of the Android status bar.",
                                    ),
                                ),
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("asset"),
                LexUserType::Object(LexObject {
                    required: Some(
                        vec![
                            SmolStr::new_static("hash"), SmolStr::new_static("blob"),
                            SmolStr::new_static("type")
                        ],
                    ),
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("blob"),
                            LexObjectProperty::Blob(LexBlob { ..Default::default() }),
                        );
                        map.insert(
                            SmolStr::new_static("hash"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static("The hash of the asset"),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("type"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static("The type of the asset"),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("updatedAt"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The date and time when this asset was last updated. Used to reset the jetstream cache, among other things.",
                                    ),
                                ),
                                format: Some(LexStringFormat::Datetime),
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("db"),
                LexUserType::Object(LexObject {
                    required: Some(vec![SmolStr::new_static("id")]),
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("id"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static("The ID of the database."),
                                ),
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("developer"),
                LexUserType::Object(LexObject {
                    required: Some(vec![SmolStr::new_static("tool")]),
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("tool"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The tool used for development, e.g., 'expo-cli'.",
                                    ),
                                ),
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("expoClient"),
                LexUserType::Object(LexObject {
                    required: Some(
                        vec![SmolStr::new_static("name"), SmolStr::new_static("slug")],
                    ),
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("android"),
                            LexObjectProperty::Ref(LexRef {
                                r#ref: CowStr::new_static("#android"),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("androidStatusBar"),
                            LexObjectProperty::Ref(LexRef {
                                r#ref: CowStr::new_static("#androidStatusBar"),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("expirements"),
                            LexObjectProperty::Unknown(LexUnknown {
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("extra"),
                            LexObjectProperty::Unknown(LexUnknown {
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("icon"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static("The URL to the app icon."),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("ios"),
                            LexObjectProperty::Ref(LexRef {
                                r#ref: CowStr::new_static("#ios"),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("locales"),
                            LexObjectProperty::Unknown(LexUnknown {
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("name"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The name of the Expo client application.",
                                    ),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("newArchEnabled"),
                            LexObjectProperty::Boolean(LexBoolean {
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("orientation"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static("The default orientation of the app."),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("platforms"),
                            LexObjectProperty::Array(LexArray {
                                description: Some(
                                    CowStr::new_static("The platforms supported by the app."),
                                ),
                                items: LexArrayItem::String(LexString {
                                    ..Default::default()
                                }),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("plugins"),
                            LexObjectProperty::Unknown(LexUnknown {
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("scheme"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The custom URI scheme for deep linking.",
                                    ),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("sdkVersion"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static("The SDK version of the Expo client."),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("slug"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static("A URL-friendly identifier for the app."),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("userInterfaceStyle"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static("The default user interface style."),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("version"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static("The version of the app."),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("web"),
                            LexObjectProperty::Ref(LexRef {
                                r#ref: CowStr::new_static("#web"),
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("expoGo"),
                LexUserType::Object(LexObject {
                    required: Some(vec![SmolStr::new_static("developer")]),
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("developer"),
                            LexObjectProperty::Ref(LexRef {
                                r#ref: CowStr::new_static("#developer"),
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("ios"),
                LexUserType::Object(LexObject {
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("supportsTablet"),
                            LexObjectProperty::Boolean(LexBoolean {
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("launchAsset"),
                LexUserType::Object(LexObject {
                    required: Some(
                        vec![
                            SmolStr::new_static("key"),
                            SmolStr::new_static("contentType"),
                            SmolStr::new_static("url")
                        ],
                    ),
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("contentType"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The MIME type of the asset, e.g., 'image/png'.",
                                    ),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("key"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The unique key for this asset, used to reference it in the plugin.",
                                    ),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("url"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The URL where the asset can be accessed.",
                                    ),
                                ),
                                format: Some(LexStringFormat::Uri),
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("manifest"),
                LexUserType::Object(LexObject {
                    required: Some(
                        vec![
                            SmolStr::new_static("id"), SmolStr::new_static("createdAt"),
                            SmolStr::new_static("runtimeVersion"),
                            SmolStr::new_static("launchAsset"),
                            SmolStr::new_static("metadata"), SmolStr::new_static("extra")
                        ],
                    ),
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("createdAt"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The date and time when this plugin manifest was created.",
                                    ),
                                ),
                                format: Some(LexStringFormat::Datetime),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("extra"),
                            LexObjectProperty::Ref(LexRef {
                                r#ref: CowStr::new_static(
                                    "app.ocho.plugin.defs#manifestExtra",
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("id"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The unique identifier for this plugin manifest.",
                                    ),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("launchAsset"),
                            LexObjectProperty::Ref(LexRef {
                                r#ref: CowStr::new_static(
                                    "app.ocho.plugin.defs#launchAsset",
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("metadata"),
                            LexObjectProperty::Unknown(LexUnknown {
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("runtimeVersion"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The version of the Expo runtime this plugin is compatible with.",
                                    ),
                                ),
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("manifestExtra"),
                LexUserType::Object(LexObject {
                    required: Some(
                        vec![
                            SmolStr::new_static("expoClient"),
                            SmolStr::new_static("expoGo")
                        ],
                    ),
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("expoClient"),
                            LexObjectProperty::Ref(LexRef {
                                r#ref: CowStr::new_static("#expoClient"),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("expoGo"),
                            LexObjectProperty::Ref(LexRef {
                                r#ref: CowStr::new_static("#expoGo"),
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("plugin"),
                LexUserType::Array(LexArray {
                    items: LexArrayItem::Union(LexRefUnion {
                        refs: vec![
                            CowStr::new_static("#stringId"),
                            CowStr::new_static("#pluginConfig")
                        ],
                        ..Default::default()
                    }),
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("pluginConfig"),
                LexUserType::Unknown(LexUnknown { ..Default::default() }),
            );
            map.insert(
                SmolStr::new_static("stringId"),
                LexUserType::String(LexString {
                    description: Some(
                        CowStr::new_static(
                            "A string identifier for a plugin, used to reference it in the app.",
                        ),
                    ),
                    ..Default::default()
                }),
            );
            map.insert(
                SmolStr::new_static("web"),
                LexUserType::Object(LexObject {
                    properties: {
                        #[allow(unused_mut)]
                        let mut map = BTreeMap::new();
                        map.insert(
                            SmolStr::new_static("bundler"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static("The bundler used for the web app."),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("favicon"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static(
                                        "The URL to the favicon for the web app.",
                                    ),
                                ),
                                ..Default::default()
                            }),
                        );
                        map.insert(
                            SmolStr::new_static("faviconBlob"),
                            LexObjectProperty::Blob(LexBlob { ..Default::default() }),
                        );
                        map.insert(
                            SmolStr::new_static("output"),
                            LexObjectProperty::String(LexString {
                                description: Some(
                                    CowStr::new_static("The output directory for the web app."),
                                ),
                                ..Default::default()
                            }),
                        );
                        map
                    },
                    ..Default::default()
                }),
            );
            map
        },
        ..Default::default()
    }
}

pub mod asset_state {

    pub use crate::builder_types::{Set, Unset, IsSet, IsUnset};
    #[allow(unused)]
    use ::core::marker::PhantomData;
    mod sealed {
        pub trait Sealed {}
    }
    /// State trait tracking which required fields have been set
    pub trait State: sealed::Sealed {
        type Blob;
        type Hash;
        type Type;
    }
    /// Empty state - all required fields are unset
    pub struct Empty(());
    impl sealed::Sealed for Empty {}
    impl State for Empty {
        type Blob = Unset;
        type Hash = Unset;
        type Type = Unset;
    }
    ///State transition - sets the `blob` field to Set
    pub struct SetBlob<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetBlob<St> {}
    impl<St: State> State for SetBlob<St> {
        type Blob = Set<members::blob>;
        type Hash = St::Hash;
        type Type = St::Type;
    }
    ///State transition - sets the `hash` field to Set
    pub struct SetHash<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetHash<St> {}
    impl<St: State> State for SetHash<St> {
        type Blob = St::Blob;
        type Hash = Set<members::hash>;
        type Type = St::Type;
    }
    ///State transition - sets the `type` field to Set
    pub struct SetType<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetType<St> {}
    impl<St: State> State for SetType<St> {
        type Blob = St::Blob;
        type Hash = St::Hash;
        type Type = Set<members::r#type>;
    }
    /// Marker types for field names
    #[allow(non_camel_case_types)]
    pub mod members {
        ///Marker type for the `blob` field
        pub struct blob(());
        ///Marker type for the `hash` field
        pub struct hash(());
        ///Marker type for the `type` field
        pub struct r#type(());
    }
}

/// Builder for constructing an instance of this type.
pub struct AssetBuilder<St: asset_state::State, S: BosStr = DefaultStr> {
    _state: PhantomData<fn() -> St>,
    _fields: (Option<BlobRef<S>>, Option<S>, Option<S>, Option<Datetime>),
    _type: PhantomData<fn() -> S>,
}

impl Asset<DefaultStr> {
    /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed
    pub fn new() -> AssetBuilder<asset_state::Empty, DefaultStr> {
        AssetBuilder::new()
    }
}

impl<S: BosStr> Asset<S> {
    /// Create a new builder for this type
    pub fn builder() -> AssetBuilder<asset_state::Empty, S> {
        AssetBuilder::builder()
    }
}

impl AssetBuilder<asset_state::Empty, DefaultStr> {
    /// Create a new builder with all fields unset, using the default string type, if needed
    pub fn new() -> Self {
        AssetBuilder {
            _state: PhantomData,
            _fields: (None, None, None, None),
            _type: PhantomData,
        }
    }
}

impl<S: BosStr> AssetBuilder<asset_state::Empty, S> {
    /// Create a new builder with all fields unset
    pub fn builder() -> Self {
        AssetBuilder {
            _state: PhantomData,
            _fields: (None, None, None, None),
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> AssetBuilder<St, S>
where
    St: asset_state::State,
    St::Blob: asset_state::IsUnset,
{
    /// Set the `blob` field (required)
    pub fn blob(
        mut self,
        value: impl Into<BlobRef<S>>,
    ) -> AssetBuilder<asset_state::SetBlob<St>, S> {
        self._fields.0 = Option::Some(value.into());
        AssetBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> AssetBuilder<St, S>
where
    St: asset_state::State,
    St::Hash: asset_state::IsUnset,
{
    /// Set the `hash` field (required)
    pub fn hash(
        mut self,
        value: impl Into<S>,
    ) -> AssetBuilder<asset_state::SetHash<St>, S> {
        self._fields.1 = Option::Some(value.into());
        AssetBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> AssetBuilder<St, S>
where
    St: asset_state::State,
    St::Type: asset_state::IsUnset,
{
    /// Set the `type` field (required)
    pub fn r#type(
        mut self,
        value: impl Into<S>,
    ) -> AssetBuilder<asset_state::SetType<St>, S> {
        self._fields.2 = Option::Some(value.into());
        AssetBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St: asset_state::State, S: BosStr> AssetBuilder<St, S> {
    /// Set the `updatedAt` field (optional)
    pub fn updated_at(mut self, value: impl Into<Option<Datetime>>) -> Self {
        self._fields.3 = value.into();
        self
    }
    /// Set the `updatedAt` field to an Option value (optional)
    pub fn maybe_updated_at(mut self, value: Option<Datetime>) -> Self {
        self._fields.3 = value;
        self
    }
}

impl<St, S: BosStr> AssetBuilder<St, S>
where
    St: asset_state::State,
    St::Blob: asset_state::IsSet,
    St::Hash: asset_state::IsSet,
    St::Type: asset_state::IsSet,
{
    /// Build the final struct.
    pub fn build(self) -> Asset<S> {
        Asset {
            blob: self._fields.0.unwrap(),
            hash: self._fields.1.unwrap(),
            r#type: self._fields.2.unwrap(),
            updated_at: self._fields.3,
            extra_data: Default::default(),
        }
    }
    /// Build the final struct with custom extra_data.
    pub fn build_with_data(self, extra_data: BTreeMap<SmolStr, Data<S>>) -> Asset<S> {
        Asset {
            blob: self._fields.0.unwrap(),
            hash: self._fields.1.unwrap(),
            r#type: self._fields.2.unwrap(),
            updated_at: self._fields.3,
            extra_data: Some(extra_data),
        }
    }
}

pub mod expo_go_state {

    pub use crate::builder_types::{Set, Unset, IsSet, IsUnset};
    #[allow(unused)]
    use ::core::marker::PhantomData;
    mod sealed {
        pub trait Sealed {}
    }
    /// State trait tracking which required fields have been set
    pub trait State: sealed::Sealed {
        type Developer;
    }
    /// Empty state - all required fields are unset
    pub struct Empty(());
    impl sealed::Sealed for Empty {}
    impl State for Empty {
        type Developer = Unset;
    }
    ///State transition - sets the `developer` field to Set
    pub struct SetDeveloper<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetDeveloper<St> {}
    impl<St: State> State for SetDeveloper<St> {
        type Developer = Set<members::developer>;
    }
    /// Marker types for field names
    #[allow(non_camel_case_types)]
    pub mod members {
        ///Marker type for the `developer` field
        pub struct developer(());
    }
}

/// Builder for constructing an instance of this type.
pub struct ExpoGoBuilder<St: expo_go_state::State, S: BosStr = DefaultStr> {
    _state: PhantomData<fn() -> St>,
    _fields: (Option<plugin::Developer<S>>,),
    _type: PhantomData<fn() -> S>,
}

impl ExpoGo<DefaultStr> {
    /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed
    pub fn new() -> ExpoGoBuilder<expo_go_state::Empty, DefaultStr> {
        ExpoGoBuilder::new()
    }
}

impl<S: BosStr> ExpoGo<S> {
    /// Create a new builder for this type
    pub fn builder() -> ExpoGoBuilder<expo_go_state::Empty, S> {
        ExpoGoBuilder::builder()
    }
}

impl ExpoGoBuilder<expo_go_state::Empty, DefaultStr> {
    /// Create a new builder with all fields unset, using the default string type, if needed
    pub fn new() -> Self {
        ExpoGoBuilder {
            _state: PhantomData,
            _fields: (None,),
            _type: PhantomData,
        }
    }
}

impl<S: BosStr> ExpoGoBuilder<expo_go_state::Empty, S> {
    /// Create a new builder with all fields unset
    pub fn builder() -> Self {
        ExpoGoBuilder {
            _state: PhantomData,
            _fields: (None,),
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ExpoGoBuilder<St, S>
where
    St: expo_go_state::State,
    St::Developer: expo_go_state::IsUnset,
{
    /// Set the `developer` field (required)
    pub fn developer(
        mut self,
        value: impl Into<plugin::Developer<S>>,
    ) -> ExpoGoBuilder<expo_go_state::SetDeveloper<St>, S> {
        self._fields.0 = Option::Some(value.into());
        ExpoGoBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ExpoGoBuilder<St, S>
where
    St: expo_go_state::State,
    St::Developer: expo_go_state::IsSet,
{
    /// Build the final struct.
    pub fn build(self) -> ExpoGo<S> {
        ExpoGo {
            developer: self._fields.0.unwrap(),
            extra_data: Default::default(),
        }
    }
    /// Build the final struct with custom extra_data.
    pub fn build_with_data(self, extra_data: BTreeMap<SmolStr, Data<S>>) -> ExpoGo<S> {
        ExpoGo {
            developer: self._fields.0.unwrap(),
            extra_data: Some(extra_data),
        }
    }
}

pub mod launch_asset_state {

    pub use crate::builder_types::{Set, Unset, IsSet, IsUnset};
    #[allow(unused)]
    use ::core::marker::PhantomData;
    mod sealed {
        pub trait Sealed {}
    }
    /// State trait tracking which required fields have been set
    pub trait State: sealed::Sealed {
        type ContentType;
        type Key;
        type Url;
    }
    /// Empty state - all required fields are unset
    pub struct Empty(());
    impl sealed::Sealed for Empty {}
    impl State for Empty {
        type ContentType = Unset;
        type Key = Unset;
        type Url = Unset;
    }
    ///State transition - sets the `content_type` field to Set
    pub struct SetContentType<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetContentType<St> {}
    impl<St: State> State for SetContentType<St> {
        type ContentType = Set<members::content_type>;
        type Key = St::Key;
        type Url = St::Url;
    }
    ///State transition - sets the `key` field to Set
    pub struct SetKey<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetKey<St> {}
    impl<St: State> State for SetKey<St> {
        type ContentType = St::ContentType;
        type Key = Set<members::key>;
        type Url = St::Url;
    }
    ///State transition - sets the `url` field to Set
    pub struct SetUrl<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetUrl<St> {}
    impl<St: State> State for SetUrl<St> {
        type ContentType = St::ContentType;
        type Key = St::Key;
        type Url = Set<members::url>;
    }
    /// Marker types for field names
    #[allow(non_camel_case_types)]
    pub mod members {
        ///Marker type for the `content_type` field
        pub struct content_type(());
        ///Marker type for the `key` field
        pub struct key(());
        ///Marker type for the `url` field
        pub struct url(());
    }
}

/// Builder for constructing an instance of this type.
pub struct LaunchAssetBuilder<St: launch_asset_state::State, S: BosStr = DefaultStr> {
    _state: PhantomData<fn() -> St>,
    _fields: (Option<S>, Option<S>, Option<UriValue<S>>),
    _type: PhantomData<fn() -> S>,
}

impl LaunchAsset<DefaultStr> {
    /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed
    pub fn new() -> LaunchAssetBuilder<launch_asset_state::Empty, DefaultStr> {
        LaunchAssetBuilder::new()
    }
}

impl<S: BosStr> LaunchAsset<S> {
    /// Create a new builder for this type
    pub fn builder() -> LaunchAssetBuilder<launch_asset_state::Empty, S> {
        LaunchAssetBuilder::builder()
    }
}

impl LaunchAssetBuilder<launch_asset_state::Empty, DefaultStr> {
    /// Create a new builder with all fields unset, using the default string type, if needed
    pub fn new() -> Self {
        LaunchAssetBuilder {
            _state: PhantomData,
            _fields: (None, None, None),
            _type: PhantomData,
        }
    }
}

impl<S: BosStr> LaunchAssetBuilder<launch_asset_state::Empty, S> {
    /// Create a new builder with all fields unset
    pub fn builder() -> Self {
        LaunchAssetBuilder {
            _state: PhantomData,
            _fields: (None, None, None),
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> LaunchAssetBuilder<St, S>
where
    St: launch_asset_state::State,
    St::ContentType: launch_asset_state::IsUnset,
{
    /// Set the `contentType` field (required)
    pub fn content_type(
        mut self,
        value: impl Into<S>,
    ) -> LaunchAssetBuilder<launch_asset_state::SetContentType<St>, S> {
        self._fields.0 = Option::Some(value.into());
        LaunchAssetBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> LaunchAssetBuilder<St, S>
where
    St: launch_asset_state::State,
    St::Key: launch_asset_state::IsUnset,
{
    /// Set the `key` field (required)
    pub fn key(
        mut self,
        value: impl Into<S>,
    ) -> LaunchAssetBuilder<launch_asset_state::SetKey<St>, S> {
        self._fields.1 = Option::Some(value.into());
        LaunchAssetBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> LaunchAssetBuilder<St, S>
where
    St: launch_asset_state::State,
    St::Url: launch_asset_state::IsUnset,
{
    /// Set the `url` field (required)
    pub fn url(
        mut self,
        value: impl Into<UriValue<S>>,
    ) -> LaunchAssetBuilder<launch_asset_state::SetUrl<St>, S> {
        self._fields.2 = Option::Some(value.into());
        LaunchAssetBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> LaunchAssetBuilder<St, S>
where
    St: launch_asset_state::State,
    St::ContentType: launch_asset_state::IsSet,
    St::Key: launch_asset_state::IsSet,
    St::Url: launch_asset_state::IsSet,
{
    /// Build the final struct.
    pub fn build(self) -> LaunchAsset<S> {
        LaunchAsset {
            content_type: self._fields.0.unwrap(),
            key: self._fields.1.unwrap(),
            url: self._fields.2.unwrap(),
            extra_data: Default::default(),
        }
    }
    /// Build the final struct with custom extra_data.
    pub fn build_with_data(
        self,
        extra_data: BTreeMap<SmolStr, Data<S>>,
    ) -> LaunchAsset<S> {
        LaunchAsset {
            content_type: self._fields.0.unwrap(),
            key: self._fields.1.unwrap(),
            url: self._fields.2.unwrap(),
            extra_data: Some(extra_data),
        }
    }
}

pub mod manifest_state {

    pub use crate::builder_types::{Set, Unset, IsSet, IsUnset};
    #[allow(unused)]
    use ::core::marker::PhantomData;
    mod sealed {
        pub trait Sealed {}
    }
    /// State trait tracking which required fields have been set
    pub trait State: sealed::Sealed {
        type CreatedAt;
        type Extra;
        type Id;
        type LaunchAsset;
        type Metadata;
        type RuntimeVersion;
    }
    /// Empty state - all required fields are unset
    pub struct Empty(());
    impl sealed::Sealed for Empty {}
    impl State for Empty {
        type CreatedAt = Unset;
        type Extra = Unset;
        type Id = Unset;
        type LaunchAsset = Unset;
        type Metadata = Unset;
        type RuntimeVersion = Unset;
    }
    ///State transition - sets the `created_at` field to Set
    pub struct SetCreatedAt<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetCreatedAt<St> {}
    impl<St: State> State for SetCreatedAt<St> {
        type CreatedAt = Set<members::created_at>;
        type Extra = St::Extra;
        type Id = St::Id;
        type LaunchAsset = St::LaunchAsset;
        type Metadata = St::Metadata;
        type RuntimeVersion = St::RuntimeVersion;
    }
    ///State transition - sets the `extra` field to Set
    pub struct SetExtra<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetExtra<St> {}
    impl<St: State> State for SetExtra<St> {
        type CreatedAt = St::CreatedAt;
        type Extra = Set<members::extra>;
        type Id = St::Id;
        type LaunchAsset = St::LaunchAsset;
        type Metadata = St::Metadata;
        type RuntimeVersion = St::RuntimeVersion;
    }
    ///State transition - sets the `id` field to Set
    pub struct SetId<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetId<St> {}
    impl<St: State> State for SetId<St> {
        type CreatedAt = St::CreatedAt;
        type Extra = St::Extra;
        type Id = Set<members::id>;
        type LaunchAsset = St::LaunchAsset;
        type Metadata = St::Metadata;
        type RuntimeVersion = St::RuntimeVersion;
    }
    ///State transition - sets the `launch_asset` field to Set
    pub struct SetLaunchAsset<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetLaunchAsset<St> {}
    impl<St: State> State for SetLaunchAsset<St> {
        type CreatedAt = St::CreatedAt;
        type Extra = St::Extra;
        type Id = St::Id;
        type LaunchAsset = Set<members::launch_asset>;
        type Metadata = St::Metadata;
        type RuntimeVersion = St::RuntimeVersion;
    }
    ///State transition - sets the `metadata` field to Set
    pub struct SetMetadata<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetMetadata<St> {}
    impl<St: State> State for SetMetadata<St> {
        type CreatedAt = St::CreatedAt;
        type Extra = St::Extra;
        type Id = St::Id;
        type LaunchAsset = St::LaunchAsset;
        type Metadata = Set<members::metadata>;
        type RuntimeVersion = St::RuntimeVersion;
    }
    ///State transition - sets the `runtime_version` field to Set
    pub struct SetRuntimeVersion<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetRuntimeVersion<St> {}
    impl<St: State> State for SetRuntimeVersion<St> {
        type CreatedAt = St::CreatedAt;
        type Extra = St::Extra;
        type Id = St::Id;
        type LaunchAsset = St::LaunchAsset;
        type Metadata = St::Metadata;
        type RuntimeVersion = Set<members::runtime_version>;
    }
    /// Marker types for field names
    #[allow(non_camel_case_types)]
    pub mod members {
        ///Marker type for the `created_at` field
        pub struct created_at(());
        ///Marker type for the `extra` field
        pub struct extra(());
        ///Marker type for the `id` field
        pub struct id(());
        ///Marker type for the `launch_asset` field
        pub struct launch_asset(());
        ///Marker type for the `metadata` field
        pub struct metadata(());
        ///Marker type for the `runtime_version` field
        pub struct runtime_version(());
    }
}

/// Builder for constructing an instance of this type.
pub struct ManifestBuilder<St: manifest_state::State, S: BosStr = DefaultStr> {
    _state: PhantomData<fn() -> St>,
    _fields: (
        Option<Datetime>,
        Option<plugin::ManifestExtra<S>>,
        Option<S>,
        Option<plugin::LaunchAsset<S>>,
        Option<Data<S>>,
        Option<S>,
    ),
    _type: PhantomData<fn() -> S>,
}

impl Manifest<DefaultStr> {
    /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed
    pub fn new() -> ManifestBuilder<manifest_state::Empty, DefaultStr> {
        ManifestBuilder::new()
    }
}

impl<S: BosStr> Manifest<S> {
    /// Create a new builder for this type
    pub fn builder() -> ManifestBuilder<manifest_state::Empty, S> {
        ManifestBuilder::builder()
    }
}

impl ManifestBuilder<manifest_state::Empty, DefaultStr> {
    /// Create a new builder with all fields unset, using the default string type, if needed
    pub fn new() -> Self {
        ManifestBuilder {
            _state: PhantomData,
            _fields: (None, None, None, None, None, None),
            _type: PhantomData,
        }
    }
}

impl<S: BosStr> ManifestBuilder<manifest_state::Empty, S> {
    /// Create a new builder with all fields unset
    pub fn builder() -> Self {
        ManifestBuilder {
            _state: PhantomData,
            _fields: (None, None, None, None, None, None),
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ManifestBuilder<St, S>
where
    St: manifest_state::State,
    St::CreatedAt: manifest_state::IsUnset,
{
    /// Set the `createdAt` field (required)
    pub fn created_at(
        mut self,
        value: impl Into<Datetime>,
    ) -> ManifestBuilder<manifest_state::SetCreatedAt<St>, S> {
        self._fields.0 = Option::Some(value.into());
        ManifestBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ManifestBuilder<St, S>
where
    St: manifest_state::State,
    St::Extra: manifest_state::IsUnset,
{
    /// Set the `extra` field (required)
    pub fn extra(
        mut self,
        value: impl Into<plugin::ManifestExtra<S>>,
    ) -> ManifestBuilder<manifest_state::SetExtra<St>, S> {
        self._fields.1 = Option::Some(value.into());
        ManifestBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ManifestBuilder<St, S>
where
    St: manifest_state::State,
    St::Id: manifest_state::IsUnset,
{
    /// Set the `id` field (required)
    pub fn id(
        mut self,
        value: impl Into<S>,
    ) -> ManifestBuilder<manifest_state::SetId<St>, S> {
        self._fields.2 = Option::Some(value.into());
        ManifestBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ManifestBuilder<St, S>
where
    St: manifest_state::State,
    St::LaunchAsset: manifest_state::IsUnset,
{
    /// Set the `launchAsset` field (required)
    pub fn launch_asset(
        mut self,
        value: impl Into<plugin::LaunchAsset<S>>,
    ) -> ManifestBuilder<manifest_state::SetLaunchAsset<St>, S> {
        self._fields.3 = Option::Some(value.into());
        ManifestBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ManifestBuilder<St, S>
where
    St: manifest_state::State,
    St::Metadata: manifest_state::IsUnset,
{
    /// Set the `metadata` field (required)
    pub fn metadata(
        mut self,
        value: impl Into<Data<S>>,
    ) -> ManifestBuilder<manifest_state::SetMetadata<St>, S> {
        self._fields.4 = Option::Some(value.into());
        ManifestBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ManifestBuilder<St, S>
where
    St: manifest_state::State,
    St::RuntimeVersion: manifest_state::IsUnset,
{
    /// Set the `runtimeVersion` field (required)
    pub fn runtime_version(
        mut self,
        value: impl Into<S>,
    ) -> ManifestBuilder<manifest_state::SetRuntimeVersion<St>, S> {
        self._fields.5 = Option::Some(value.into());
        ManifestBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ManifestBuilder<St, S>
where
    St: manifest_state::State,
    St::CreatedAt: manifest_state::IsSet,
    St::Extra: manifest_state::IsSet,
    St::Id: manifest_state::IsSet,
    St::LaunchAsset: manifest_state::IsSet,
    St::Metadata: manifest_state::IsSet,
    St::RuntimeVersion: manifest_state::IsSet,
{
    /// Build the final struct.
    pub fn build(self) -> Manifest<S> {
        Manifest {
            created_at: self._fields.0.unwrap(),
            extra: self._fields.1.unwrap(),
            id: self._fields.2.unwrap(),
            launch_asset: self._fields.3.unwrap(),
            metadata: self._fields.4.unwrap(),
            runtime_version: self._fields.5.unwrap(),
            extra_data: Default::default(),
        }
    }
    /// Build the final struct with custom extra_data.
    pub fn build_with_data(self, extra_data: BTreeMap<SmolStr, Data<S>>) -> Manifest<S> {
        Manifest {
            created_at: self._fields.0.unwrap(),
            extra: self._fields.1.unwrap(),
            id: self._fields.2.unwrap(),
            launch_asset: self._fields.3.unwrap(),
            metadata: self._fields.4.unwrap(),
            runtime_version: self._fields.5.unwrap(),
            extra_data: Some(extra_data),
        }
    }
}

pub mod manifest_extra_state {

    pub use crate::builder_types::{Set, Unset, IsSet, IsUnset};
    #[allow(unused)]
    use ::core::marker::PhantomData;
    mod sealed {
        pub trait Sealed {}
    }
    /// State trait tracking which required fields have been set
    pub trait State: sealed::Sealed {
        type ExpoClient;
        type ExpoGo;
    }
    /// Empty state - all required fields are unset
    pub struct Empty(());
    impl sealed::Sealed for Empty {}
    impl State for Empty {
        type ExpoClient = Unset;
        type ExpoGo = Unset;
    }
    ///State transition - sets the `expo_client` field to Set
    pub struct SetExpoClient<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetExpoClient<St> {}
    impl<St: State> State for SetExpoClient<St> {
        type ExpoClient = Set<members::expo_client>;
        type ExpoGo = St::ExpoGo;
    }
    ///State transition - sets the `expo_go` field to Set
    pub struct SetExpoGo<St: State = Empty>(PhantomData<fn() -> St>);
    impl<St: State> sealed::Sealed for SetExpoGo<St> {}
    impl<St: State> State for SetExpoGo<St> {
        type ExpoClient = St::ExpoClient;
        type ExpoGo = Set<members::expo_go>;
    }
    /// Marker types for field names
    #[allow(non_camel_case_types)]
    pub mod members {
        ///Marker type for the `expo_client` field
        pub struct expo_client(());
        ///Marker type for the `expo_go` field
        pub struct expo_go(());
    }
}

/// Builder for constructing an instance of this type.
pub struct ManifestExtraBuilder<
    St: manifest_extra_state::State,
    S: BosStr = DefaultStr,
> {
    _state: PhantomData<fn() -> St>,
    _fields: (Option<plugin::ExpoClient<S>>, Option<plugin::ExpoGo<S>>),
    _type: PhantomData<fn() -> S>,
}

impl ManifestExtra<DefaultStr> {
    /// Create a new builder for this type, using the default string type (DefaultStr = SmolStr) if needed
    pub fn new() -> ManifestExtraBuilder<manifest_extra_state::Empty, DefaultStr> {
        ManifestExtraBuilder::new()
    }
}

impl<S: BosStr> ManifestExtra<S> {
    /// Create a new builder for this type
    pub fn builder() -> ManifestExtraBuilder<manifest_extra_state::Empty, S> {
        ManifestExtraBuilder::builder()
    }
}

impl ManifestExtraBuilder<manifest_extra_state::Empty, DefaultStr> {
    /// Create a new builder with all fields unset, using the default string type, if needed
    pub fn new() -> Self {
        ManifestExtraBuilder {
            _state: PhantomData,
            _fields: (None, None),
            _type: PhantomData,
        }
    }
}

impl<S: BosStr> ManifestExtraBuilder<manifest_extra_state::Empty, S> {
    /// Create a new builder with all fields unset
    pub fn builder() -> Self {
        ManifestExtraBuilder {
            _state: PhantomData,
            _fields: (None, None),
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ManifestExtraBuilder<St, S>
where
    St: manifest_extra_state::State,
    St::ExpoClient: manifest_extra_state::IsUnset,
{
    /// Set the `expoClient` field (required)
    pub fn expo_client(
        mut self,
        value: impl Into<plugin::ExpoClient<S>>,
    ) -> ManifestExtraBuilder<manifest_extra_state::SetExpoClient<St>, S> {
        self._fields.0 = Option::Some(value.into());
        ManifestExtraBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ManifestExtraBuilder<St, S>
where
    St: manifest_extra_state::State,
    St::ExpoGo: manifest_extra_state::IsUnset,
{
    /// Set the `expoGo` field (required)
    pub fn expo_go(
        mut self,
        value: impl Into<plugin::ExpoGo<S>>,
    ) -> ManifestExtraBuilder<manifest_extra_state::SetExpoGo<St>, S> {
        self._fields.1 = Option::Some(value.into());
        ManifestExtraBuilder {
            _state: PhantomData,
            _fields: self._fields,
            _type: PhantomData,
        }
    }
}

impl<St, S: BosStr> ManifestExtraBuilder<St, S>
where
    St: manifest_extra_state::State,
    St::ExpoClient: manifest_extra_state::IsSet,
    St::ExpoGo: manifest_extra_state::IsSet,
{
    /// Build the final struct.
    pub fn build(self) -> ManifestExtra<S> {
        ManifestExtra {
            expo_client: self._fields.0.unwrap(),
            expo_go: self._fields.1.unwrap(),
            extra_data: Default::default(),
        }
    }
    /// Build the final struct with custom extra_data.
    pub fn build_with_data(
        self,
        extra_data: BTreeMap<SmolStr, Data<S>>,
    ) -> ManifestExtra<S> {
        ManifestExtra {
            expo_client: self._fields.0.unwrap(),
            expo_go: self._fields.1.unwrap(),
            extra_data: Some(extra_data),
        }
    }
}