pub struct HelmClient { /* private fields */ }Expand description
Typed client for the HELM kernel API.
Implementations§
Source§impl HelmClient
impl HelmClient
Sourcepub fn with_auth(
base_url: &str,
api_key: Option<&str>,
tenant_id: Option<&str>,
principal_id: Option<&str>,
) -> Self
pub fn with_auth( base_url: &str, api_key: Option<&str>, tenant_id: Option<&str>, principal_id: Option<&str>, ) -> Self
Create a client with optional API key, tenant, and principal headers for protected routes.
pub fn get_boundary_status(&self) -> Result<Value, HelmApiError>
pub fn list_boundary_capabilities(&self) -> Result<Value, HelmApiError>
pub fn list_boundary_records(&self) -> Result<Value, HelmApiError>
pub fn get_boundary_record( &self, record_id: &str, ) -> Result<Value, HelmApiError>
pub fn verify_boundary_record( &self, record_id: &str, ) -> Result<Value, HelmApiError>
pub fn list_boundary_checkpoints(&self) -> Result<Value, HelmApiError>
pub fn create_boundary_checkpoint(&self) -> Result<Value, HelmApiError>
pub fn verify_boundary_checkpoint( &self, checkpoint_id: &str, ) -> Result<Value, HelmApiError>
Sourcepub fn chat_completions(
&self,
req: &ChatCompletionRequest,
) -> Result<ChatCompletionResponse, HelmApiError>
pub fn chat_completions( &self, req: &ChatCompletionRequest, ) -> Result<ChatCompletionResponse, HelmApiError>
POST /v1/chat/completions
Sourcepub fn evaluate_decision<T: Serialize>(
&self,
req: &T,
) -> Result<Value, HelmApiError>
👎Deprecated: use evaluate_decision_v5 for the typed V5 contract
pub fn evaluate_decision<T: Serialize>( &self, req: &T, ) -> Result<Value, HelmApiError>
use evaluate_decision_v5 for the typed V5 contract
POST /api/v1/evaluate using the legacy dynamic contract.
Sourcepub fn evaluate_decision_v5(
&self,
req: &EvaluateRequest,
) -> Result<EvaluateResponse, HelmApiError>
pub fn evaluate_decision_v5( &self, req: &EvaluateRequest, ) -> Result<EvaluateResponse, HelmApiError>
POST /api/v1/evaluate using the canonical V5 request and response.
Sourcepub fn approve_intent(
&self,
req: &ApprovalRequest,
) -> Result<Receipt, HelmApiError>
pub fn approve_intent( &self, req: &ApprovalRequest, ) -> Result<Receipt, HelmApiError>
POST /api/v1/kernel/approve
Sourcepub fn list_sessions(&self) -> Result<Vec<Session>, HelmApiError>
pub fn list_sessions(&self) -> Result<Vec<Session>, HelmApiError>
GET /api/v1/proofgraph/sessions
Sourcepub fn get_receipts(
&self,
session_id: &str,
) -> Result<Vec<Receipt>, HelmApiError>
pub fn get_receipts( &self, session_id: &str, ) -> Result<Vec<Receipt>, HelmApiError>
GET /api/v1/proofgraph/sessions/{id}/receipts
Sourcepub fn export_evidence(
&self,
session_id: Option<&str>,
) -> Result<Vec<u8>, HelmApiError>
pub fn export_evidence( &self, session_id: Option<&str>, ) -> Result<Vec<u8>, HelmApiError>
POST /api/v1/evidence/export — returns raw bytes
Sourcepub fn verify_evidence(
&self,
bundle: &[u8],
) -> Result<VerificationResult, HelmApiError>
pub fn verify_evidence( &self, bundle: &[u8], ) -> Result<VerificationResult, HelmApiError>
POST /api/v1/evidence/verify
Sourcepub fn replay_verify(
&self,
bundle: &[u8],
) -> Result<VerificationResult, HelmApiError>
pub fn replay_verify( &self, bundle: &[u8], ) -> Result<VerificationResult, HelmApiError>
POST /api/v1/replay/verify
Sourcepub fn create_evidence_envelope_manifest(
&self,
req: &EvidenceEnvelopeExportRequest,
) -> Result<EvidenceEnvelopeManifest, HelmApiError>
pub fn create_evidence_envelope_manifest( &self, req: &EvidenceEnvelopeExportRequest, ) -> Result<EvidenceEnvelopeManifest, HelmApiError>
POST /api/v1/evidence/envelopes
pub fn list_evidence_envelope_manifests(&self) -> Result<Value, HelmApiError>
pub fn get_evidence_envelope_manifest( &self, manifest_id: &str, ) -> Result<Value, HelmApiError>
pub fn get_evidence_envelope_payload( &self, manifest_id: &str, ) -> Result<EvidenceEnvelopePayload, HelmApiError>
pub fn verify_evidence_envelope_manifest( &self, manifest_id: &str, ) -> Result<Value, HelmApiError>
Sourcepub fn get_receipt(&self, receipt_hash: &str) -> Result<Receipt, HelmApiError>
pub fn get_receipt(&self, receipt_hash: &str) -> Result<Receipt, HelmApiError>
GET /api/v1/proofgraph/receipts/{hash}
Sourcepub fn list_negative_conformance_vectors(
&self,
) -> Result<Vec<NegativeBoundaryVector>, HelmApiError>
pub fn list_negative_conformance_vectors( &self, ) -> Result<Vec<NegativeBoundaryVector>, HelmApiError>
GET /api/v1/conformance/negative
pub fn list_conformance_vectors(&self) -> Result<Value, HelmApiError>
Sourcepub fn list_mcp_registry(
&self,
) -> Result<Vec<McpQuarantineRecord>, HelmApiError>
pub fn list_mcp_registry( &self, ) -> Result<Vec<McpQuarantineRecord>, HelmApiError>
GET /api/v1/mcp/registry
Sourcepub fn discover_mcp_server(
&self,
req: &McpRegistryDiscoverRequest,
) -> Result<McpQuarantineRecord, HelmApiError>
pub fn discover_mcp_server( &self, req: &McpRegistryDiscoverRequest, ) -> Result<McpQuarantineRecord, HelmApiError>
POST /api/v1/mcp/registry
Sourcepub fn approve_mcp_server(
&self,
req: &McpRegistryApprovalRequest,
) -> Result<McpQuarantineRecord, HelmApiError>
pub fn approve_mcp_server( &self, req: &McpRegistryApprovalRequest, ) -> Result<McpQuarantineRecord, HelmApiError>
POST /api/v1/mcp/registry/approve
pub fn get_mcp_registry_record( &self, server_id: &str, ) -> Result<McpQuarantineRecord, HelmApiError>
pub fn approve_mcp_registry_record( &self, server_id: &str, req: &McpRegistryApprovalRequest, ) -> Result<McpQuarantineRecord, HelmApiError>
pub fn revoke_mcp_registry_record( &self, server_id: &str, reason: Option<&str>, ) -> Result<McpQuarantineRecord, HelmApiError>
pub fn scan_mcp_server<T: Serialize>( &self, req: &T, ) -> Result<Value, HelmApiError>
pub fn list_mcp_auth_profiles(&self) -> Result<Value, HelmApiError>
pub fn put_mcp_auth_profile<T: Serialize>( &self, profile_id: &str, profile: &T, ) -> Result<Value, HelmApiError>
Sourcepub fn inspect_sandbox_grants(
&self,
runtime: Option<&str>,
profile: Option<&str>,
policy_epoch: Option<&str>,
) -> Result<SandboxGrantInspection, HelmApiError>
pub fn inspect_sandbox_grants( &self, runtime: Option<&str>, profile: Option<&str>, policy_epoch: Option<&str>, ) -> Result<SandboxGrantInspection, HelmApiError>
GET /api/v1/sandbox/grants/inspect
pub fn list_sandbox_profiles(&self) -> Result<Value, HelmApiError>
pub fn list_sandbox_grants(&self) -> Result<Value, HelmApiError>
pub fn create_sandbox_grant<T: Serialize>( &self, req: &T, ) -> Result<Value, HelmApiError>
pub fn get_sandbox_grant(&self, grant_id: &str) -> Result<Value, HelmApiError>
pub fn verify_sandbox_grant( &self, grant_id: &str, ) -> Result<Value, HelmApiError>
pub fn preflight_sandbox_grant<T: Serialize>( &self, req: &T, ) -> Result<Value, HelmApiError>
pub fn list_agent_identities(&self) -> Result<Value, HelmApiError>
pub fn get_authz_health(&self) -> Result<Value, HelmApiError>
pub fn check_authz<T: Serialize>(&self, req: &T) -> Result<Value, HelmApiError>
pub fn list_authz_snapshots(&self) -> Result<Value, HelmApiError>
pub fn get_authz_snapshot( &self, snapshot_id: &str, ) -> Result<Value, HelmApiError>
pub fn list_approval_ceremonies(&self) -> Result<Value, HelmApiError>
pub fn create_approval_ceremony<T: Serialize>( &self, req: &T, ) -> Result<Value, HelmApiError>
pub fn transition_approval_ceremony<T: Serialize>( &self, approval_id: &str, action: &str, req: &T, ) -> Result<Value, HelmApiError>
pub fn create_approval_webauthn_challenge<T: Serialize>( &self, approval_id: &str, req: &T, ) -> Result<ApprovalWebAuthnChallenge, HelmApiError>
pub fn assert_approval_webauthn_challenge<T: Serialize>( &self, approval_id: &str, req: &T, ) -> Result<Value, HelmApiError>
pub fn list_budget_ceilings(&self) -> Result<Value, HelmApiError>
pub fn put_budget_ceiling<T: Serialize>( &self, budget_id: &str, req: &T, ) -> Result<Value, HelmApiError>
pub fn get_coexistence_capabilities(&self) -> Result<Value, HelmApiError>
pub fn get_telemetry_otel_config(&self) -> Result<Value, HelmApiError>
pub fn export_telemetry<T: Serialize>( &self, req: &T, ) -> Result<Value, HelmApiError>
Sourcepub fn health(&self) -> Result<Value, HelmApiError>
pub fn health(&self) -> Result<Value, HelmApiError>
GET /healthz
Sourcepub fn version(&self) -> Result<VersionInfo, HelmApiError>
pub fn version(&self) -> Result<VersionInfo, HelmApiError>
GET /version