// @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.

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;

#[allow(unused_imports)]
use jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation;
use jacquard_common::types::blob::BlobRef;
use jacquard_common::types::string::{Datetime, UriValue};
use jacquard_common::types::value::Data;
use jacquard_derive::{IntoStatic, lexicon, 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;

#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct AdaptiveIcon<'a> {
    ///The background color of the adaptive icon.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub background_color: Option<CowStr<'a>>,
    ///The URL to the foreground image of the adaptive icon.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub foreground_image: Option<CowStr<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub foreground_image_blob: Option<BlobRef<'a>>,
}


#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct Android<'a> {
    ///Configuration for the adaptive icon on Android.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub adaptive_icon: Option<plugin::AdaptiveIcon<'a>>,
    ///Whether edge-to-edge mode is enabled for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub edge_to_edge_enabled: Option<bool>,
}

/// Android status bar configuration.

#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct AndroidStatusBar<'a> {
    ///The background color of the Android status bar.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub background_color: Option<CowStr<'a>>,
}


#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct Asset<'a> {
    ///The blob of the asset
    #[serde(borrow)]
    pub blob: BlobRef<'a>,
    ///The hash of the asset
    #[serde(borrow)]
    pub hash: CowStr<'a>,
    ///The type of the asset
    #[serde(borrow)]
    pub r#type: CowStr<'a>,
    ///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>,
}


#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct Db<'a> {
    ///The ID of the database.
    #[serde(borrow)]
    pub id: CowStr<'a>,
}


#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct Developer<'a> {
    ///The tool used for development, e.g., 'expo-cli'.
    #[serde(borrow)]
    pub tool: CowStr<'a>,
}


#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct ExpoClient<'a> {
    ///Android-specific configuration for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub android: Option<plugin::Android<'a>>,
    ///Configuration for the Android status bar.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub android_status_bar: Option<plugin::AndroidStatusBar<'a>>,
    ///Experimental features enabled for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub expirements: Option<Data<'a>>,
    ///Additional configuration for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub extra: Option<Data<'a>>,
    ///The URL to the app icon.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub icon: Option<CowStr<'a>>,
    ///ios-specific configuration for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub ios: Option<plugin::Ios<'a>>,
    ///Localization settings for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub locales: Option<Data<'a>>,
    ///The name of the Expo client application.
    #[serde(borrow)]
    pub name: CowStr<'a>,
    ///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")]
    #[serde(borrow)]
    pub orientation: Option<CowStr<'a>>,
    ///The platforms supported by the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub platforms: Option<Vec<CowStr<'a>>>,
    ///A list of plugins used by the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub plugins: Option<Data<'a>>,
    ///The custom URI scheme for deep linking.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub scheme: Option<CowStr<'a>>,
    ///The SDK version of the Expo client.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub sdk_version: Option<CowStr<'a>>,
    ///A URL-friendly identifier for the app.
    #[serde(borrow)]
    pub slug: CowStr<'a>,
    ///The default user interface style.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub user_interface_style: Option<CowStr<'a>>,
    ///The version of the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub version: Option<CowStr<'a>>,
    ///Web-specific configuration for the app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub web: Option<plugin::Web<'a>>,
}


#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct ExpoGo<'a> {
    ///Developer-specific configuration for the Expo Go app.
    #[serde(borrow)]
    pub developer: plugin::Developer<'a>,
}


#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct Ios<'a> {
    ///Whether the app supports iPad.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub supports_tablet: Option<bool>,
}


#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct LaunchAsset<'a> {
    ///The MIME type of the asset, e.g., 'image/png'.
    #[serde(borrow)]
    pub content_type: CowStr<'a>,
    ///The unique key for this asset, used to reference it in the plugin.
    #[serde(borrow)]
    pub key: CowStr<'a>,
    ///The URL where the asset can be accessed.
    #[serde(borrow)]
    pub url: UriValue<'a>,
}


#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct Manifest<'a> {
    ///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.
    #[serde(borrow)]
    pub extra: plugin::ManifestExtra<'a>,
    ///The unique identifier for this plugin manifest.
    #[serde(borrow)]
    pub id: CowStr<'a>,
    ///The launch asset for the plugin (the main javascipt bundle).
    #[serde(borrow)]
    pub launch_asset: plugin::LaunchAsset<'a>,
    #[serde(borrow)]
    pub metadata: Data<'a>,
    ///The version of the Expo runtime this plugin is compatible with.
    #[serde(borrow)]
    pub runtime_version: CowStr<'a>,
}


#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct ManifestExtra<'a> {
    #[serde(borrow)]
    pub expo_client: plugin::ExpoClient<'a>,
    #[serde(borrow)]
    pub expo_go: plugin::ExpoGo<'a>,
}


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

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

#[lexicon]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)]
#[serde(rename_all = "camelCase")]
pub struct Web<'a> {
    ///The bundler used for the web app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub bundler: Option<CowStr<'a>>,
    ///The URL to the favicon for the web app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub favicon: Option<CowStr<'a>>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub favicon_blob: Option<BlobRef<'a>>,
    ///The output directory for the web app.
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(borrow)]
    pub output: Option<CowStr<'a>>,
}

impl<'a> LexiconSchema for AdaptiveIcon<'a> {
    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<'a> LexiconSchema for Android<'a> {
    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<'a> LexiconSchema for AndroidStatusBar<'a> {
    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<'a> LexiconSchema for Asset<'a> {
    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<'a> LexiconSchema for Db<'a> {
    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<'a> LexiconSchema for Developer<'a> {
    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<'a> LexiconSchema for ExpoClient<'a> {
    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<'a> LexiconSchema for ExpoGo<'a> {
    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<'a> LexiconSchema for Ios<'a> {
    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<'a> LexiconSchema for LaunchAsset<'a> {
    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<'a> LexiconSchema for Manifest<'a> {
    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<'a> LexiconSchema for ManifestExtra<'a> {
    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<'a> LexiconSchema for Web<'a> {
    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 Hash;
        type Blob;
        type Type;
    }
    /// Empty state - all required fields are unset
    pub struct Empty(());
    impl sealed::Sealed for Empty {}
    impl State for Empty {
        type Hash = Unset;
        type Blob = Unset;
        type Type = Unset;
    }
    ///State transition - sets the `hash` field to Set
    pub struct SetHash<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetHash<S> {}
    impl<S: State> State for SetHash<S> {
        type Hash = Set<members::hash>;
        type Blob = S::Blob;
        type Type = S::Type;
    }
    ///State transition - sets the `blob` field to Set
    pub struct SetBlob<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetBlob<S> {}
    impl<S: State> State for SetBlob<S> {
        type Hash = S::Hash;
        type Blob = Set<members::blob>;
        type Type = S::Type;
    }
    ///State transition - sets the `type` field to Set
    pub struct SetType<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetType<S> {}
    impl<S: State> State for SetType<S> {
        type Hash = S::Hash;
        type Blob = S::Blob;
        type Type = Set<members::r#type>;
    }
    /// Marker types for field names
    #[allow(non_camel_case_types)]
    pub mod members {
        ///Marker type for the `hash` field
        pub struct hash(());
        ///Marker type for the `blob` field
        pub struct blob(());
        ///Marker type for the `type` field
        pub struct r#type(());
    }
}

/// Builder for constructing an instance of this type
pub struct AssetBuilder<'a, S: asset_state::State> {
    _state: PhantomData<fn() -> S>,
    _fields: (
        Option<BlobRef<'a>>,
        Option<CowStr<'a>>,
        Option<CowStr<'a>>,
        Option<Datetime>,
    ),
    _lifetime: PhantomData<&'a ()>,
}

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

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

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

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

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

impl<'a, S: asset_state::State> AssetBuilder<'a, 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<'a, S> AssetBuilder<'a, S>
where
    S: asset_state::State,
    S::Hash: asset_state::IsSet,
    S::Blob: asset_state::IsSet,
    S::Type: asset_state::IsSet,
{
    /// Build the final struct
    pub fn build(self) -> Asset<'a> {
        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<jacquard_common::deps::smol_str::SmolStr, Data<'a>>,
    ) -> Asset<'a> {
        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<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetDeveloper<S> {}
    impl<S: State> State for SetDeveloper<S> {
        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<'a, S: expo_go_state::State> {
    _state: PhantomData<fn() -> S>,
    _fields: (Option<plugin::Developer<'a>>,),
    _lifetime: PhantomData<&'a ()>,
}

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

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

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

impl<'a, S> ExpoGoBuilder<'a, S>
where
    S: expo_go_state::State,
    S::Developer: expo_go_state::IsSet,
{
    /// Build the final struct
    pub fn build(self) -> ExpoGo<'a> {
        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<jacquard_common::deps::smol_str::SmolStr, Data<'a>>,
    ) -> ExpoGo<'a> {
        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 Url;
        type Key;
        type ContentType;
    }
    /// Empty state - all required fields are unset
    pub struct Empty(());
    impl sealed::Sealed for Empty {}
    impl State for Empty {
        type Url = Unset;
        type Key = Unset;
        type ContentType = Unset;
    }
    ///State transition - sets the `url` field to Set
    pub struct SetUrl<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetUrl<S> {}
    impl<S: State> State for SetUrl<S> {
        type Url = Set<members::url>;
        type Key = S::Key;
        type ContentType = S::ContentType;
    }
    ///State transition - sets the `key` field to Set
    pub struct SetKey<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetKey<S> {}
    impl<S: State> State for SetKey<S> {
        type Url = S::Url;
        type Key = Set<members::key>;
        type ContentType = S::ContentType;
    }
    ///State transition - sets the `content_type` field to Set
    pub struct SetContentType<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetContentType<S> {}
    impl<S: State> State for SetContentType<S> {
        type Url = S::Url;
        type Key = S::Key;
        type ContentType = Set<members::content_type>;
    }
    /// Marker types for field names
    #[allow(non_camel_case_types)]
    pub mod members {
        ///Marker type for the `url` field
        pub struct url(());
        ///Marker type for the `key` field
        pub struct key(());
        ///Marker type for the `content_type` field
        pub struct content_type(());
    }
}

/// Builder for constructing an instance of this type
pub struct LaunchAssetBuilder<'a, S: launch_asset_state::State> {
    _state: PhantomData<fn() -> S>,
    _fields: (Option<CowStr<'a>>, Option<CowStr<'a>>, Option<UriValue<'a>>),
    _lifetime: PhantomData<&'a ()>,
}

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

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

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

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

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

impl<'a, S> LaunchAssetBuilder<'a, S>
where
    S: launch_asset_state::State,
    S::Url: launch_asset_state::IsSet,
    S::Key: launch_asset_state::IsSet,
    S::ContentType: launch_asset_state::IsSet,
{
    /// Build the final struct
    pub fn build(self) -> LaunchAsset<'a> {
        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<jacquard_common::deps::smol_str::SmolStr, Data<'a>>,
    ) -> LaunchAsset<'a> {
        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 Id;
        type Metadata;
        type CreatedAt;
        type RuntimeVersion;
        type LaunchAsset;
        type Extra;
    }
    /// Empty state - all required fields are unset
    pub struct Empty(());
    impl sealed::Sealed for Empty {}
    impl State for Empty {
        type Id = Unset;
        type Metadata = Unset;
        type CreatedAt = Unset;
        type RuntimeVersion = Unset;
        type LaunchAsset = Unset;
        type Extra = Unset;
    }
    ///State transition - sets the `id` field to Set
    pub struct SetId<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetId<S> {}
    impl<S: State> State for SetId<S> {
        type Id = Set<members::id>;
        type Metadata = S::Metadata;
        type CreatedAt = S::CreatedAt;
        type RuntimeVersion = S::RuntimeVersion;
        type LaunchAsset = S::LaunchAsset;
        type Extra = S::Extra;
    }
    ///State transition - sets the `metadata` field to Set
    pub struct SetMetadata<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetMetadata<S> {}
    impl<S: State> State for SetMetadata<S> {
        type Id = S::Id;
        type Metadata = Set<members::metadata>;
        type CreatedAt = S::CreatedAt;
        type RuntimeVersion = S::RuntimeVersion;
        type LaunchAsset = S::LaunchAsset;
        type Extra = S::Extra;
    }
    ///State transition - sets the `created_at` field to Set
    pub struct SetCreatedAt<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetCreatedAt<S> {}
    impl<S: State> State for SetCreatedAt<S> {
        type Id = S::Id;
        type Metadata = S::Metadata;
        type CreatedAt = Set<members::created_at>;
        type RuntimeVersion = S::RuntimeVersion;
        type LaunchAsset = S::LaunchAsset;
        type Extra = S::Extra;
    }
    ///State transition - sets the `runtime_version` field to Set
    pub struct SetRuntimeVersion<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetRuntimeVersion<S> {}
    impl<S: State> State for SetRuntimeVersion<S> {
        type Id = S::Id;
        type Metadata = S::Metadata;
        type CreatedAt = S::CreatedAt;
        type RuntimeVersion = Set<members::runtime_version>;
        type LaunchAsset = S::LaunchAsset;
        type Extra = S::Extra;
    }
    ///State transition - sets the `launch_asset` field to Set
    pub struct SetLaunchAsset<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetLaunchAsset<S> {}
    impl<S: State> State for SetLaunchAsset<S> {
        type Id = S::Id;
        type Metadata = S::Metadata;
        type CreatedAt = S::CreatedAt;
        type RuntimeVersion = S::RuntimeVersion;
        type LaunchAsset = Set<members::launch_asset>;
        type Extra = S::Extra;
    }
    ///State transition - sets the `extra` field to Set
    pub struct SetExtra<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetExtra<S> {}
    impl<S: State> State for SetExtra<S> {
        type Id = S::Id;
        type Metadata = S::Metadata;
        type CreatedAt = S::CreatedAt;
        type RuntimeVersion = S::RuntimeVersion;
        type LaunchAsset = S::LaunchAsset;
        type Extra = Set<members::extra>;
    }
    /// Marker types for field names
    #[allow(non_camel_case_types)]
    pub mod members {
        ///Marker type for the `id` field
        pub struct id(());
        ///Marker type for the `metadata` field
        pub struct metadata(());
        ///Marker type for the `created_at` field
        pub struct created_at(());
        ///Marker type for the `runtime_version` field
        pub struct runtime_version(());
        ///Marker type for the `launch_asset` field
        pub struct launch_asset(());
        ///Marker type for the `extra` field
        pub struct extra(());
    }
}

/// Builder for constructing an instance of this type
pub struct ManifestBuilder<'a, S: manifest_state::State> {
    _state: PhantomData<fn() -> S>,
    _fields: (
        Option<Datetime>,
        Option<plugin::ManifestExtra<'a>>,
        Option<CowStr<'a>>,
        Option<plugin::LaunchAsset<'a>>,
        Option<Data<'a>>,
        Option<CowStr<'a>>,
    ),
    _lifetime: PhantomData<&'a ()>,
}

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

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

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

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

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

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

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

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

impl<'a, S> ManifestBuilder<'a, S>
where
    S: manifest_state::State,
    S::Id: manifest_state::IsSet,
    S::Metadata: manifest_state::IsSet,
    S::CreatedAt: manifest_state::IsSet,
    S::RuntimeVersion: manifest_state::IsSet,
    S::LaunchAsset: manifest_state::IsSet,
    S::Extra: manifest_state::IsSet,
{
    /// Build the final struct
    pub fn build(self) -> Manifest<'a> {
        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<jacquard_common::deps::smol_str::SmolStr, Data<'a>>,
    ) -> Manifest<'a> {
        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 ExpoGo;
        type ExpoClient;
    }
    /// Empty state - all required fields are unset
    pub struct Empty(());
    impl sealed::Sealed for Empty {}
    impl State for Empty {
        type ExpoGo = Unset;
        type ExpoClient = Unset;
    }
    ///State transition - sets the `expo_go` field to Set
    pub struct SetExpoGo<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetExpoGo<S> {}
    impl<S: State> State for SetExpoGo<S> {
        type ExpoGo = Set<members::expo_go>;
        type ExpoClient = S::ExpoClient;
    }
    ///State transition - sets the `expo_client` field to Set
    pub struct SetExpoClient<S: State = Empty>(PhantomData<fn() -> S>);
    impl<S: State> sealed::Sealed for SetExpoClient<S> {}
    impl<S: State> State for SetExpoClient<S> {
        type ExpoGo = S::ExpoGo;
        type ExpoClient = Set<members::expo_client>;
    }
    /// Marker types for field names
    #[allow(non_camel_case_types)]
    pub mod members {
        ///Marker type for the `expo_go` field
        pub struct expo_go(());
        ///Marker type for the `expo_client` field
        pub struct expo_client(());
    }
}

/// Builder for constructing an instance of this type
pub struct ManifestExtraBuilder<'a, S: manifest_extra_state::State> {
    _state: PhantomData<fn() -> S>,
    _fields: (Option<plugin::ExpoClient<'a>>, Option<plugin::ExpoGo<'a>>),
    _lifetime: PhantomData<&'a ()>,
}

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

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

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

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

impl<'a, S> ManifestExtraBuilder<'a, S>
where
    S: manifest_extra_state::State,
    S::ExpoGo: manifest_extra_state::IsSet,
    S::ExpoClient: manifest_extra_state::IsSet,
{
    /// Build the final struct
    pub fn build(self) -> ManifestExtra<'a> {
        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<jacquard_common::deps::smol_str::SmolStr, Data<'a>>,
    ) -> ManifestExtra<'a> {
        ManifestExtra {
            expo_client: self._fields.0.unwrap(),
            expo_go: self._fields.1.unwrap(),
            extra_data: Some(extra_data),
        }
    }
}