Skip to main content

hanzo_client/models/
step_view.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct StepView {
16    /// Args are the tool's default arguments, merged under whatever the caller passes at run time.
17    #[serde(rename = "args", skip_serializing_if = "Option::is_none")]
18    pub args: Option<std::collections::HashMap<String, serde_json::Value>>,
19    /// Automatable is true when the Business AI can run this step (it names a tool).
20    #[serde(rename = "automatable", skip_serializing_if = "Option::is_none")]
21    pub automatable: Option<bool>,
22    /// Available is true when every dependency is done or skipped.
23    #[serde(rename = "available", skip_serializing_if = "Option::is_none")]
24    pub available: Option<bool>,
25    /// BlockedBy lists the unfinished dependencies keeping the step unavailable.
26    #[serde(rename = "blockedBy", skip_serializing_if = "Option::is_none")]
27    pub blocked_by: Option<Vec<String>>,
28    /// Dependencies are step ids that must be done/skipped before this step is available. The wire key is `deps` (the blueprint contract).
29    #[serde(rename = "deps", skip_serializing_if = "Option::is_none")]
30    pub deps: Option<Vec<String>>,
31    /// Detail is the prose/juncture — what the Guide asks or explains here.
32    #[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
33    pub detail: Option<String>,
34    /// Draft, when set, is the prompt the embedded AI answers first; its output is folded into one of Args before the tool runs.
35    #[serde(rename = "draft", skip_serializing_if = "Option::is_none")]
36    pub draft: Option<String>,
37    /// DraftInto names the argument the drafted text lands in. Empty means \"brief\".
38    #[serde(rename = "draftInto", skip_serializing_if = "Option::is_none")]
39    pub draft_into: Option<String>,
40    /// Enabled is the admin on/off lever; absent reads as enabled.
41    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
42    pub enabled: Option<bool>,
43    /// ID is the step's id, as it appears in the journey (e.g. \"gsuite\").
44    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
45    pub id: Option<String>,
46    /// Section is the phase (section id) this step groups under.
47    #[serde(rename = "section", skip_serializing_if = "Option::is_none")]
48    pub section: Option<String>,
49    /// Signal names the machine detector that auto-marks this step done.
50    #[serde(rename = "signal", skip_serializing_if = "Option::is_none")]
51    pub signal: Option<String>,
52    /// Source records what marked the state: manual, auto (detected) or agent.
53    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
54    pub source: Option<String>,
55    /// State is the step's per-org lifecycle state: todo|in_progress|done|skipped.
56    #[serde(rename = "state", skip_serializing_if = "Option::is_none")]
57    pub state: Option<String>,
58    /// Title is the one-line quest as a person reads it in the checklist.
59    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
60    pub title: Option<String>,
61    /// Tool is the MCP tool the Business AI runs for \"do it for me\". A step naming none can only be completed by a person.
62    #[serde(rename = "tool", skip_serializing_if = "Option::is_none")]
63    pub tool: Option<String>,
64}
65
66impl StepView {
67    pub fn new() -> StepView {
68        StepView {
69            args: None,
70            automatable: None,
71            available: None,
72            blocked_by: None,
73            deps: None,
74            detail: None,
75            draft: None,
76            draft_into: None,
77            enabled: None,
78            id: None,
79            section: None,
80            signal: None,
81            source: None,
82            state: None,
83            title: None,
84            tool: None,
85        }
86    }
87}
88