use schemars::JsonSchema;
use serde::Deserialize;
#[derive(Debug, Deserialize, JsonSchema)]
pub struct GetJobFeedbackInput {
#[schemars(description = "Event ID (hex) of the job request")]
pub job_event_id: String,
#[schemars(description = "Timeout in seconds to wait for feedback (default: 60)")]
pub timeout_secs: Option<u64>,
}
#[derive(Debug, Deserialize, JsonSchema)]
pub struct SubmitAndPayJobInput {
#[schemars(description = "The task input text to send to the provider")]
pub input: String,
#[schemars(description = "Provider npub (bech32) to direct the job to")]
pub provider_npub: String,
#[schemars(description = "Input type: 'text' or 'url' (default: 'text')")]
pub input_type: Option<String>,
#[schemars(description = "Bid amount in lamports (e.g. 10000000 = 0.01 SOL)")]
pub bid_amount: Option<u64>,
#[schemars(description = "Job kind offset (default 100 for kind:5100)")]
pub kind_offset: Option<u16>,
#[schemars(description = "Capability tags for the job request")]
pub tags: Option<Vec<String>>,
#[schemars(description = "Total timeout in seconds for the full flow: submit → pay → result (default: 300)")]
pub timeout_secs: Option<u64>,
}
#[derive(Debug, Deserialize, JsonSchema)]
pub struct PingAgentInput {
#[schemars(description = "Agent npub (bech32) to check for liveness")]
pub agent_npub: String,
#[schemars(description = "Timeout in seconds to wait for pong response (default: 15)")]
pub timeout_secs: Option<u64>,
}