use super::*;
mod swift_types;
mod typescript_types;
use swift_types::SWIFT_TYPES;
use typescript_types::TYPESCRIPT_TYPES;
pub fn typescript_declarations() -> String {
typescript_type_block("typescript declarations")
}
fn typescript_type_block(language: &str) -> String {
format!("{}{}", generated_header("//", language), TYPESCRIPT_TYPES)
}
pub fn swift_binding() -> Result<String, serde_json::Error> {
Ok(swift_binding_body())
}
pub fn swift_binding_embedded(
_explicit_overlay: Option<&crate::llm_config::ProvidersConfig>,
_explicit_capabilities: Option<&crate::llm::capabilities::CapabilitiesFile>,
) -> Result<String, serde_json::Error> {
Ok(swift_binding_body())
}
fn swift_binding_body() -> String {
format!("{}{}", generated_header("//", "swift"), SWIFT_TYPES)
}
fn generated_header(comment: &str, language: &str) -> String {
format!(
"{comment} GENERATED by `{PROVIDER_CATALOG_GENERATOR}` - do not edit by hand.\n{comment} Source: Harn runtime provider catalog schema v{PROVIDER_CATALOG_SCHEMA_VERSION}.\n{comment} Language: {language}.\n\n"
)
}