tf_types/generated/plugin_manifest.rs
1// GENERATED by `tf-schema codegen --target rust` — DO NOT EDIT BY HAND.
2
3#![allow(unused_imports, non_camel_case_types, non_snake_case, clippy::all)]
4
5use serde::{Deserialize, Serialize};
6use super::*;
7
8/// Declarative manifest describing a TrustForge plugin. See TF-0008.
9#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
10pub struct PluginManifest {
11 /// Version of the plugin-manifest schema itself.
12 pub plugin_version: PluginManifest_PluginVersion,
13 /// Reverse-DNS-style plugin identifier, e.g. com.example.my-plugin.
14 pub plugin_id: String,
15 /// Actor URI the plugin operates as once loaded. Use tf:actor:plugin:...
16 pub actor_id: ActorId,
17 /// Plugin runtime kind.
18 pub kind: PluginManifest_Kind,
19 /// Path (relative to the manifest) to the plugin entry point — a .js/.ts/.mjs module for native, or a .wasm file for WASM.
20 pub entry: String,
21 /// Base64-encoded ed25519 public key that signs this manifest.
22 pub identity_pub: String,
23 /// Signature envelope over the canonical form of this manifest with signature.signature cleared.
24 pub signature: SignatureEnvelope,
25 /// Capabilities the plugin declares it needs. Enforced by the registry + guard.
26 pub capabilities: Vec<Capability>,
27 /// WASM-only: host functions the plugin is allowed to import. The registry enforces that only these imports are supplied.
28 #[serde(skip_serializing_if = "Option::is_none", default)]
29 pub imports: Option<Vec<String>>,
30 /// Optional proof level at which this plugin's actions should be emitted.
31 #[serde(skip_serializing_if = "Option::is_none", default)]
32 pub proof_profile: Option<ProofLevel>,
33 /// Conformance profile labels this plugin claims (e.g. tf-plugin-compatible, tf-bridge-compatible). The registry surfaces this so daemons can refuse plugins that don't claim a profile they require.
34 #[serde(skip_serializing_if = "Option::is_none", default)]
35 pub conformance_profile: Option<Vec<String>>,
36 /// Human-readable description.
37 #[serde(skip_serializing_if = "Option::is_none", default)]
38 pub description: Option<String>,
39}
40
41/// Plugin runtime kind.
42#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
43pub enum PluginManifest_Kind {
44 #[serde(rename = "native")]
45 Native,
46 #[serde(rename = "wasm")]
47 Wasm,
48}
49
50/// Version of the plugin-manifest schema itself.
51#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
52pub enum PluginManifest_PluginVersion {
53 #[serde(rename = "1")]
54 V1,
55}