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