Skip to main content

Crate alien_commands_client

Crate alien_commands_client 

Source
Expand description

Rust client SDK for invoking commands on Alien deployments.

Mirrors the TypeScript @alienplatform/sdk/commands — a high-level client for creating, polling, and decoding command results.

§Example

use alien_commands_client::{CommandsClient, CommandsClientConfig};

let client = CommandsClient::new("http://localhost:9090/v1", "dep_123", "token");
let result: serde_json::Value = client.invoke("generate-report", serde_json::json!({
    "startDate": "2025-01-01",
})).await?;

Structs§

CommandsClient
High-level client for invoking commands on Alien deployments.
CommandsClientConfig
Configuration for the commands client.
InvokeOptions
Options for a single invoke call.

Enums§

CommandError
Errors that can occur when invoking commands.